# HG changeset patch # User Ruslan Ermilov # Date 1325076686 0 # Node ID df261b1ce71f04f7f4f68e9a5ab2be3eb3ec3e22 # Parent b33d3f3cd8cad874d97f879003acf444ce545e5c Documented the --with-pcre-jit configuration parameter and the "pcre_jit" directive. diff --git a/xml/en/docs/install.xml b/xml/en/docs/install.xml --- a/xml/en/docs/install.xml +++ b/xml/en/docs/install.xml @@ -188,6 +188,13 @@ module. +--with-pcre-jit—builds the PCRE library with +“just-in-time compilation” support. + + + + + --with-zlib=path—sets the path to the sources of the zlib library. The library distribution (version diff --git a/xml/en/docs/ngx_core_module.xml b/xml/en/docs/ngx_core_module.xml --- a/xml/en/docs/ngx_core_module.xml +++ b/xml/en/docs/ngx_core_module.xml @@ -177,6 +177,31 @@ This directive is intended for nginx dev + +on | off +off +main +1.1.12 + + +Enables or disables the use of “just-in-time compilation” (PCRE JIT) +for regular expressions known at configuration parse time. + + + +PCRE JIT can speed up processing of regular expressions significantly. + +The JIT is available in PCRE libraries starting from version 8.20 +built with the --enable-jit configuration parameter. +When building the PCRE library with nginx (--with-pcre=), +the JIT support should be enabled with the +--with-pcre-jit configuration parameter. + + + + + + file nginx.pid diff --git a/xml/ru/docs/install.xml b/xml/ru/docs/install.xml --- a/xml/ru/docs/install.xml +++ b/xml/ru/docs/install.xml @@ -182,6 +182,13 @@ 4.4—8.21) нужно взять на сайте PCRE +--with-pcre-jit—собирает библиотеку PCRE с +поддержкой JIT-компиляции. + + + + + --with-zlib=путь—задаёт путь к исходным текстам библиотеки zlib. Дистрибутив библиотеки (версию 1.1.3—1.2.5) нужно взять на сайте diff --git a/xml/ru/docs/ngx_core_module.xml b/xml/ru/docs/ngx_core_module.xml --- a/xml/ru/docs/ngx_core_module.xml +++ b/xml/ru/docs/ngx_core_module.xml @@ -174,6 +174,32 @@ include vhosts/*.conf; + +on | off +off +main +1.1.12 + + +Разрешает или запрещает использование JIT-компиляции (PCRE JIT) +для регулярных выражений, известных на момент парсинга конфигурации. + + + +Использование PCRE JIT способно существенно ускорить обработку +регулярных выражений. + +Для работы JIT необходима библиотека PCRE версии 8.20 или выше, +собранная с параметром конфигурации --enable-jit. +При сборке библиотеки PCRE вместе с nginx (--with-pcre=), +для включения поддержки JIT необходимо использовать параметр +конфигурации --with-pcre-jit. + + + + + + файл nginx.pid