In interation 2, Lazy only has to "forwardtrack" 4 times and then matches and doesn't even look at the last 2000 characters of the string.
I'm disappointed that Lazy doesn't seem to be optimized very well, with the simplest of "forwardtracking" to find the closing " going much, much slower than matching [^"]+"
In reply to RE: How are we lazy?
by tye
in thread How are we lazy?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |