Re: [pcre-dev] Detecting starting code units

Αρχική Σελίδα
Delete this message
Συντάκτης: ph10
Ημερομηνία:  
Προς: ND
Υ/ο: Pcre-dev
Αντικείμενο: Re: [pcre-dev] Detecting starting code units
On Sat, 13 Jul 2019, ND via Pcre-dev wrote:

> PCRE try to detect starting code units in attempt to apply a start
> optimization.
> As we can see from next two examples, it detects starting code units for
> "[^ab]", but don't doing this for "[^a]". I think it looks a bit curiously.
> May be "[^a]" can use the same algorithm as "[^ab]"?


[^a] is optimized into a different (faster) opcode; I will see if this
can easily produce the same starting code units as [^ab] for tidyness. I
do not expect it will do much for performance.

Philip

--
Philip Hazel