|
version 1.1, 2012/02/21 23:05:51
|
version 1.1.1.2, 2012/02/21 23:50:25
|
|
Line 7 PCRE - Perl-compatible regular expressions
|
Line 7 PCRE - Perl-compatible regular expressions
|
| Just-in-time compiling is a heavyweight optimization that can greatly speed up |
Just-in-time compiling is a heavyweight optimization that can greatly speed up |
| pattern matching. However, it comes at the cost of extra processing before the |
pattern matching. However, it comes at the cost of extra processing before the |
| match is performed. Therefore, it is of most benefit when the same pattern is |
match is performed. Therefore, it is of most benefit when the same pattern is |
| going to be matched many times. This does not necessarily mean many calls of | going to be matched many times. This does not necessarily mean many calls of a |
| \fPpcre_exec()\fP; if the pattern is not anchored, matching attempts may take | matching function; if the pattern is not anchored, matching attempts may take |
| place many times at various positions in the subject, even for a single call to | place many times at various positions in the subject, even for a single call. |
| \fBpcre_exec()\fP. If the subject string is very long, it may still pay to use | Therefore, if the subject string is very long, it may still pay to use JIT for |
| JIT for one-off matches. | one-off matches. |
| .P |
.P |
| JIT support applies only to the traditional matching function, | JIT support applies only to the traditional Perl-compatible matching function. |
| \fBpcre_exec()\fP. It does not apply when \fBpcre_dfa_exec()\fP is being used. | It does not apply when the DFA matching function is being used. The code for |
| The code for this support was written by Zoltan Herczeg. | this support was written by Zoltan Herczeg. |
| . |
. |
| . |
. |
| |
.SH "8-BIT and 16-BIT SUPPORT" |
| |
.rs |
| |
.sp |
| |
JIT support is available for both the 8-bit and 16-bit PCRE libraries. To keep |
| |
this documentation simple, only the 8-bit interface is described in what |
| |
follows. If you are using the 16-bit library, substitute the 16-bit functions |
| |
and 16-bit structures (for example, \fIpcre16_jit_stack\fP instead of |
| |
\fIpcre_jit_stack\fP). |
| |
. |
| |
. |
| .SH "AVAILABILITY OF JIT SUPPORT" |
.SH "AVAILABILITY OF JIT SUPPORT" |
| .rs |
.rs |
| .sp |
.sp |
|
Line 28 JIT. The support is limited to the following hardware
|
Line 38 JIT. The support is limited to the following hardware
|
| ARM v5, v7, and Thumb2 |
ARM v5, v7, and Thumb2 |
| Intel x86 32-bit and 64-bit |
Intel x86 32-bit and 64-bit |
| MIPS 32-bit |
MIPS 32-bit |
| Power PC 32-bit and 64-bit (experimental) | Power PC 32-bit and 64-bit |
| .sp |
.sp |
| The Power PC support is designated as experimental because it has not been |
The Power PC support is designated as experimental because it has not been |
| fully tested. If --enable-jit is set on an unsupported platform, compilation |
fully tested. If --enable-jit is set on an unsupported platform, compilation |
|
Line 357 Cambridge CB2 3QH, England.
|
Line 367 Cambridge CB2 3QH, England.
|
| .rs |
.rs |
| .sp |
.sp |
| .nf |
.nf |
| Last updated: 26 November 2011 | Last updated: 08 January 2012 |
| Copyright (c) 1997-2011 University of Cambridge. | Copyright (c) 1997-2012 University of Cambridge. |
| .fi |
.fi |