On Friday, July 25, 2003, at 10:06 PM, Alex Rice wrote:



On Friday, July 25, 2003, at 07:56 PM, Dar Scott wrote:



On Friday, July 25, 2003, at 07:21 PM, Mark Brownell wrote:


"perlRegEx = 13, PNLP = 3" using:

put "<perl>(.*)(</perl>)" into regEx

I wonder if--by one making a few assumptions--this can be optimized.

The ".*" is the most general pattern and so it's the worst, performance wise. By restricting the pattern a bit we can speed it up. Using Mark's test case with "<perl>([^<]+)(</perl>)" the run-times are almost identical.


Alex Rice

Ten seconds ago I sent this to Dar off-list:


What do you mean? I don't get it.

Mark

Tag teams...


_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to