[pcre-dev] Start optimizations with partial match

トップ ページ
このメッセージを削除
著者: ND
日付:  
To: Pcre-dev
題目: [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?