Friday, November 5, 2010

What is a good test case showing the regex performance problems of the pre/post/match vars in Perl?

Programmer Question

In the English module and a few other places, users are advised never to use the $& $` and $' variables or their English equivalents $MATCH $PREMATCH $POSTMATCH due to the fact that they will slow down all regex use.



What is a good test case (benchmark) that shows the performance problems?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails