xsl-list
[Top] [All Lists]

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

2011-07-12 11:26:58
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--