[pcre-dev] Start optimizations with partial match

Page principale
Supprimer ce message
Auteur: ND
Date:  
À: Pcre-dev
Sujet: [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?