in reply to Re^3: Recursive sub-pattern spectacularly slow, what's wrong? (me, or just this use case, or a bug?)
in thread Recursive sub-pattern spectacularly slow, what's wrong? (me, or just this use case, or a bug?)
Basically its trying to detect that the complexity is more ("super") than linear and turns on caching.
Since the situation from starting from "c" without prior match is the same like with a prior "b" or "ab" the cached result of a FAIL can be used to shortcut the search when starting from "c", "d" and so on.
Of course you could also apply the same mechanism with recursive regexes, but as I said the use cases are rare.
Cheers
- LanX (LogIn timing out again)
|
---|