Autor: ph10 Fecha: A: ND Cc: Pcre-dev Asunto: 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.