Re: [pcre-dev] Optimizations when execution order is importa…

Αρχική Σελίδα
Delete this message
Συντάκτης: NN
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: Re: [pcre-dev] Optimizations when execution order is important
On Wed, 17 Dec 2008 18:17:46 +0300, Philip Hazel <ph10@???> wrote:

> On Wed, 17 Dec 2008, NN wrote:
>
>> So, the feature of disabling "disordering" optimizations is already
>> present in PCRE.
> I have not looked through the code to see what other
> optimizations might affect callouts.

I think, all this cases (if any) will affect (*ACCEPT) too.

> There is a big performance hit in not doing the pre-scan for "a".
> Disabling this optimization whenever there is a callout in the pattern
> is not good. Probably this could be arranged only if the callout comes
> before the "a" ... but I'll have to study the code to be sure.

Yes, this affects performance. Therefore it can be made optional.

Michael.