in reply to How are we lazy?
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 [^"]+"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) RE: RE: How are we lazy?
by Ovid (Cardinal) on Jul 19, 2000 at 01:06 UTC |