Valentin V. Bartenev
ne at vbart.ru
Tue Dec 27 09:45:37 UTC 2011
On Tuesday 27 December 2011 03:37:15 lhmwzy wrote:
> How to use pcre_jit?
pcre_jit on; - in the main context (root level of your nginx.conf).
It enables PCRE Jist-in-Time compilation on nginx configuration phase. This
can speed up matching for all regular expressions in your config up to 10 times.
More info: http://sljit.sourceforge.net/pcre.html
The directive only works for nginx compiled with PCRE library 8.20 or above.
Also, PCRE must be configured with --enable-jit flag.
If you compile PCRE with nginx (the "--with-pcre=path/to/sources" flag), you can
also set the "--with-pcre-jit" flag to enable JIT support (PCRE >= 8.20).
wbr, Valentin V. Bartenev
More information about the nginx