diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2009-03-17 11:54:09 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2009-03-17 11:54:09 +0300 |
commit | 40a7f089a1da79b2486b01e5584c56eb3ba8b08a (patch) | |
tree | 4f4c724f51cded27c485fda82e17e0ef241fa1d3 /mcs/class/System.XML/System.Xml.XPath | |
parent | 65f82e7013c9eb33e161ad441993d7008be750d4 (diff) |
2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
* XPathExpression.cs : eliminate use of ExpressionCache and lose
significant performance in some use for the sake of multithreaded
use. Fixed bug #477049.
svn path=/trunk/mcs/; revision=129545
Diffstat (limited to 'mcs/class/System.XML/System.Xml.XPath')
-rw-r--r-- | mcs/class/System.XML/System.Xml.XPath/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/mcs/class/System.XML/System.Xml.XPath/ChangeLog b/mcs/class/System.XML/System.Xml.XPath/ChangeLog index f713326b417..bf448e83255 100644 --- a/mcs/class/System.XML/System.Xml.XPath/ChangeLog +++ b/mcs/class/System.XML/System.Xml.XPath/ChangeLog @@ -1,3 +1,9 @@ +2009-03-17 Atsushi Enomoto <atsushi@ximian.com> + + * XPathExpression.cs : eliminate use of ExpressionCache and lose + significant performance in some use for the sake of multithreaded + use. Fixed bug #477049. + 2009-01-20 Atsushi Enomoto <atsushi@ximian.com> * Expression.cs : give up sortless iterator optimization. diff --git a/mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs b/mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs index fb0c32bfb35..c846ad9006e 100644 --- a/mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs +++ b/mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs @@ -95,12 +95,8 @@ namespace System.Xml.XPath internal static XPathExpression Compile (string xpath, NSResolver nsmgr, IStaticXsltContext ctx) { - XPathExpression x = ExpressionCache.Get (xpath, ctx); - if (x == null) { - XPathParser parser = new XPathParser (ctx); - x = new CompiledExpression (xpath, parser.Compile (xpath)); - ExpressionCache.Set (xpath, ctx, x); - } + XPathParser parser = new XPathParser (ctx); + CompiledExpression x = new CompiledExpression (xpath, parser.Compile (xpath)); x.SetContext (nsmgr); return x; } |