Re: [pcre-dev] Start optimizations with partial match

Top Page
Delete this message
Author: ph10
Date:  
To: ND
CC: Pcre-dev
Subject: Re: [pcre-dev] Start optimizations with partial match
On Sun, 23 Jun 2019, ND via Pcre-dev wrote:

> On 2019-06-23 04:33, ND wrote:
> >Or this calculations occurs at compile time while partial matching flag is
> >set at matchtime?


That is correct.

> Oh! Now I read docs about it.
> It seems that PARTIAL are compiletime option only for JIT. So it seems that
> disabling of this calculations may matter to JIT only. May be it can reduce a
> bit some compile time in some cases.


At compile time, you do not know if JIT is going to be used. In PCRE1
these calculations were done in a separate pcre_study() call. However,
they are not expensive calculations and for PCRE2 they just happen
automatically.

> At match time there are start optimizations that use this calculations.


Yes.

> It seems that this optimizations are disabled when PARTIAL option used.


Yes.


Philip

--
Philip Hazel