Autor: Philip Hazel Data: Para: mavvma CC: pcre-dev Asunto: Re: [pcre-dev] Optimizations when execution order is important
On Mon, 15 Dec 2008, mavvma@??? wrote:
> IMHO, in certain cases it's not quite right. For example,
> /...(*ACCEPT)...A/ at user's point of view may be accessed without
> letter "A" occurrence. Are "disordering" optimizations invoked in this
> case?
I had already spotted that one. The "look ahead for a required
character" optimization is disabled in the presence of (*ACCEPT). It is
also disabled if the subject is very, very long (because it can take too
much time to search for a character that is not present).