William A. Rowe, Jr. wrote:
Eric Covener wrote:

Anyone else +1 for flatten-as-default and providing an option such as:

'q'uick: Substitute more efficiently, but further substitutions will
not be able match across the boundaries of this substitutions
replacement string.

+1, anything requiring this depth-of-understanding is prone to be a problem.

The optimization would have to know that the smallest pattern-match space
is some (x) characters long, and unconditionally do a set-aside of (x-1)
characters of trailing data from each bucket, to match across calls.

Flatten is so much simpler for the casual user.

Actually, I have a rather sick thought...

...if pcre would accept a callback for "read", where we could compose only
as large a pattern buffer as it desired, or feed char-by-char, it would
be possible to read across buckets.  Something we aught to explore.


Reply via email to