Subject: Re: [xsl] why matches($title,'.*?(\.|,)\s*$')) can perform so much worse than matches($title,'(\.|,)\s*$')) From: Michael Kay <mike@xxxxxxxxxxxx> Date: Wed, 13 Jul 2011 15:13:47 +0100 |
It would be perfectly valid (and sensible) for a query processor to realise that the two expressions you gave were equivalent and so not perform n^2 tests, but I am unaware of a processor that makes these kinds of optimizations to regular expressions.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] why matches($title,'.*?(\, Alex Muir | Thread | Re: [xsl] why matches($title,'.*?(\, Oliver Hallam |
Re: [xsl] why matches($title,'.*?(\, Alex Muir | Date | [xsl] format-number/bankers' roundi, daniel whitney |
Month |