[pcre-dev] Start optimizations with partial match

Pàgina inicial
Delete this message
Autor: ND
Data:  
A: Pcre-dev
Assumpte: [pcre-dev] Start optimizations with partial match
Good day!


Here is pcre2test listing:


/(?<=ab)cde/info
Capture group count = 0
Max lookbehind = 2
First code unit = 'c'
Last code unit = 'e'
Subject length lower bound = 3
ab\=ph
Partial match: ab
                <<



We can see that PCRE calculates first code unit, last code unit and
subject length lower bound. But this info is useless for partial match.
Isn't it?

May be some optimization can be achieved by disabling this 3 start
calculations for partial matches?