Don't ask to ask, just ask | |
PerlMonks |
Re: Strange behaviour of the regex engine (pathological protection)by tye (Sage) |
on Jan 06, 2015 at 03:16 UTC ( [id://1112291]=note: print w/replies, xml ) | Need Help?? |
Perl optimizes certain nested loop regex constructs similar to (...*)* in order to avoid what is pathological behavior with most regex engines. For non-pathological cases, there is a small cost to this protection. The reason the performance significantly decreases is because that crosses the point that triggers the warning "Complex regular subexpression recursion limit (32766) exceeded" (repeatedly). - tye
In Section
Seekers of Perl Wisdom
|
|