/[pcre]/code/trunk/doc/pcreprecompile.3
ViewVC logotype

Diff of /code/trunk/doc/pcreprecompile.3

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 678 by ph10, Sun Aug 28 15:23:03 2011 UTC revision 691 by ph10, Sun Sep 11 14:31:21 2011 UTC
# Line 12  If you are not using any private charact Line 12  If you are not using any private charact
12  \fBpcre_maketables()\fP  \fBpcre_maketables()\fP
13  .\"  .\"
14  documentation), this is relatively straightforward. If you are using private  documentation), this is relatively straightforward. If you are using private
15  tables, it is a little bit more complicated. However, if you are using the  tables, it is a little bit more complicated. However, if you are using the
16  just-in-time optimization feature of \fBpcre_study()\fP, it is not possible to  just-in-time optimization feature of \fBpcre_study()\fP, it is not possible to
17  save and reload the JIT data.  save and reload the JIT data.
18  .P  .P
19  If you save compiled patterns to a file, you can copy them to a different host  If you save compiled patterns to a file, you can copy them to a different host
# Line 21  and run them there. This works even if t Line 21  and run them there. This works even if t
21  to the one on which the patterns were compiled. There may be a small  to the one on which the patterns were compiled. There may be a small
22  performance penalty, but it should be insignificant. However, compiling regular  performance penalty, but it should be insignificant. However, compiling regular
23  expressions with one version of PCRE for use with a different version is not  expressions with one version of PCRE for use with a different version is not
24  guaranteed to work and may cause crashes, and saving and restoring a compiled  guaranteed to work and may cause crashes, and saving and restoring a compiled
25  pattern loses any JIT optimization data.  pattern loses any JIT optimization data.
26  .  .
27  .  .
# Line 62  some daemon process that passes them via Line 62  some daemon process that passes them via
62  them.  them.
63  .P  .P
64  If the pattern has been studied, it is also possible to save the normal study  If the pattern has been studied, it is also possible to save the normal study
65  data in a similar way to the compiled pattern itself. However, if the  data in a similar way to the compiled pattern itself. However, if the
66  PCRE_STUDY_JIT_COMPILE was used, the just-in-time data that is created cannot  PCRE_STUDY_JIT_COMPILE was used, the just-in-time data that is created cannot
67  be saved because it is too dependent on the current environment. When studying  be saved because it is too dependent on the current environment. When studying
68  generates additional information, \fBpcre_study()\fP returns a pointer to a  generates additional information, \fBpcre_study()\fP returns a pointer to a
# Line 116  If you saved study data with the compile Line 116  If you saved study data with the compile
116  reloaded study data. You must also set the PCRE_EXTRA_STUDY_DATA bit in the  reloaded study data. You must also set the PCRE_EXTRA_STUDY_DATA bit in the
117  \fIflags\fP field to indicate that study data is present. Then pass the  \fIflags\fP field to indicate that study data is present. Then pass the
118  \fBpcre_extra\fP block to \fBpcre_exec()\fP or \fBpcre_dfa_exec()\fP in the  \fBpcre_extra\fP block to \fBpcre_exec()\fP or \fBpcre_dfa_exec()\fP in the
119  usual way. If the pattern was studied for just-in-time optimization, that data  usual way. If the pattern was studied for just-in-time optimization, that data
120  cannot be saved, and so is lost by a save/restore cycle.  cannot be saved, and so is lost by a save/restore cycle.
121  .  .
122  .  .

Legend:
Removed from v.678  
changed lines
  Added in v.691

  ViewVC Help
Powered by ViewVC 1.1.5