The stupid question is the question not asked | |
PerlMonks |
Re^2: pattern matching with large regexby Tanktalus (Canon) |
on Aug 13, 2005 at 17:59 UTC ( [id://483583]=note: print w/replies, xml ) | Need Help?? |
Looping will be slower? According to simonm, matching multiple times is faster than a single super-match. Only a benchmark of actual data will show for sure, but I've seen it said on PM many times already that multiple smaller matches are faster than single larger-matches. I'm presuming that simpler FSMs combined with less ability to backtrack has something to do with it. I'm not entirely sure, though.
In Section
Seekers of Perl Wisdom
|
|