Subject: Re: [xsl] why matches($title,'.*?(\.|,)\s*$')) can perform so much worse than matches($title,'(\.|,)\s*$')) From: Oliver Hallam <oliver@xxxxxxxxxxx> Date: Wed, 13 Jul 2011 13:33:53 +0100 |
Oliver Hallam XQSharp
Hi,
I'm wondering why matches($title,'.*?(\.|,)\s*$')) can perform so much worse than matches($title,'(\.|,)\s*$'))
I found at least in one file out of thousands that I process the first one can take a good 30 minutes to complete and the second is quick.
No doubt the .*? causes some problem but what exactly is the problem that is causes?
Regards
-- Alex Muir Instructor | Program Organizer - University Technology Student Work Experience Building University of the Gambia http://sites.utg.edu.gm/alex/
Low budget software development benefiting development in the Gambia, West Africa Experience of a lifetime, come to Gambia and Join UTSWEB - http://sites.utg.edu.gm/utsweb/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] why matches($title,'.*?(\.|,), Alex Muir | Thread | Re: [xsl] why matches($title,'.*?(\, Alex Muir |
[xsl] why matches($title,'.*?(\.|,), Alex Muir | Date | Re: [xsl] why matches($title,'.*?(\, Alex Muir |
Month |