Author: atsushi
Date: 2006-02-20 08:02:16 -0500 (Mon, 20 Feb 2006)
New Revision: 57064
Modified:
trunk/mcs/class/System.XML/System.Xml/ChangeLog
trunk/mcs/class/System.XML/System.Xml/XmlValidatingReader.cs
Log:
2006-02-20 Atsushi Enomoto <[EMAIL PROTECTED]>
* XmlValidatingReader.cs : reducing layered ReadState invocation
results in 10% speed up.
Modified: trunk/mcs/class/System.XML/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/ChangeLog 2006-02-20 12:31:13 UTC
(rev 57063)
+++ trunk/mcs/class/System.XML/System.Xml/ChangeLog 2006-02-20 13:02:16 UTC
(rev 57064)
@@ -1,5 +1,10 @@
2006-02-20 Atsushi Enomoto <[EMAIL PROTECTED]>
+ * XmlValidatingReader.cs : reducing layered ReadState invocation
+ results in 10% speed up.
+
+2006-02-20 Atsushi Enomoto <[EMAIL PROTECTED]>
+
* XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
- reduced call to NextSibling which is very unlikely to be inlined
- reorganized conditioning to avoid extra check
Modified: trunk/mcs/class/System.XML/System.Xml/XmlValidatingReader.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlValidatingReader.cs
2006-02-20 12:31:13 UTC (rev 57063)
+++ trunk/mcs/class/System.XML/System.Xml/XmlValidatingReader.cs
2006-02-20 13:02:16 UTC (rev 57064)
@@ -476,7 +476,7 @@
[MonoTODO ("We decided not to support XDR schema that spec is
obsolete.")]
public override bool Read ()
{
- if (ReadState == ReadState.Initial) {
+ if (validatingReader == null) {
switch (ValidationType) {
case ValidationType.Auto:
case ValidationType.None:
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches