In fact the jit match does less check than the normal match and fits
better when the regex code had been compiled with JIT. However the
classic match call still works with JIT only it does more checks.

Regards.

On Thu, 13 Aug 2020 at 17:22, Willy TARREAU <[email protected]> wrote:
>
> Hi David,
>
> On Thu, Aug 13, 2020 at 03:00:28PM +0100, David CARLIER wrote:
> > Subject: [PATCH] CLEANUP/MEDIUM: regex: PCRE2 use JIT match when JIT
> >  optimisation occured.
> >
> > When a regex had been succesfully compiled by the JIT pass, it is better
> >  to use the related match, thanksfully having same signature, for better
> >  performance.
>
> I'm not sure I understand well. Does this mean that right now when we
> use PCRE/JIT we compile using JIT but we don't match using it ? This
> sounds strange to me because I remember that you published numbers a
> long time ago showing a real boost with JIT. Or is there only a special
> case where JIT is used for the match ? Or only a special case where it
> is not used ?
>
> Thanks!
> Willy

Reply via email to