[pcre-dev] Start optimizations with partial match

Top Page
Delete this message
Author: ND
Date:  
To: Pcre-dev
Subject: [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?