[pcre-dev] option setting for JIT?

Top Page
Delete this message
Author: Nils Goroll
Date:  
To: pcre-dev
Subject: [pcre-dev] option setting for JIT?
Hi,

https://www.varnish-cache.org/ uses pcre by compiling a domain language (VCL)
into C and I wonder if we can offer varnish users a way of dynamically enabling
JIT per RE.

Obiously one could add some flag outside the RE, but I wonder if it would make
sense to add an option setting (like "(*JIT)") the the RE itself, which would
have the same effect as PCRE_STUDY_JIT_COMPILE when pcre_study() is called.

There could be a PCRE_STUDY_JIT_OPTION flag to allow pcre_study to turn on JIT
dynamically. Callers would have to oblige to calling pcre_free_study() when
using PCRE_STUDY_JIT_OPTION.

Thoughts?

Nils