[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] why matches($title,'.*?(\.|,)\s*$')) can perform so much worse than matches($title,'(\.|,)\s*$'))


Subject: [xsl] why matches($title,'.*?(\.|,)\s*$')) can perform so much worse than matches($title,'(\.|,)\s*$'))
From: Alex Muir <alex.g.muir@xxxxxxxxx>
Date: Tue, 12 Jul 2011 16:26:46 +0000

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