in reply to Strange behaviour of the regex engine
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange behaviour of the regex engine (pathological protection)
by thof (Initiate) on Jan 06, 2015 at 18:53 UTC | |
by tye (Sage) on Jan 06, 2015 at 21:46 UTC | |
by Anonymous Monk on Jan 06, 2015 at 21:52 UTC |