180 |
</pre> |
</pre> |
181 |
to the <b>configure</b> command. With this configuration, PCRE will use the |
to the <b>configure</b> command. With this configuration, PCRE will use the |
182 |
<b>pcre_stack_malloc</b> and <b>pcre_stack_free</b> variables to call memory |
<b>pcre_stack_malloc</b> and <b>pcre_stack_free</b> variables to call memory |
183 |
management functions. Separate functions are provided because the usage is very |
management functions. By default these point to <b>malloc()</b> and |
184 |
predictable: the block sizes requested are always the same, and the blocks are |
<b>free()</b>, but you can replace the pointers so that your own functions are |
185 |
always freed in reverse order. A calling program might be able to implement |
used. |
186 |
optimized functions that perform better than the standard <b>malloc()</b> and |
</P> |
187 |
<b>free()</b> functions. PCRE runs noticeably more slowly when built in this |
<P> |
188 |
way. This option affects only the <b>pcre_exec()</b> function; it is not |
Separate functions are provided rather than using <b>pcre_malloc</b> and |
189 |
relevant for the the <b>pcre_dfa_exec()</b> function. |
<b>pcre_free</b> because the usage is very predictable: the block sizes |
190 |
|
requested are always the same, and the blocks are always freed in reverse |
191 |
|
order. A calling program might be able to implement optimized functions that |
192 |
|
perform better than <b>malloc()</b> and <b>free()</b>. PCRE runs noticeably more |
193 |
|
slowly when built in this way. This option affects only the <b>pcre_exec()</b> |
194 |
|
function; it is not relevant for the the <b>pcre_dfa_exec()</b> function. |
195 |
</P> |
</P> |
196 |
<br><a name="SEC10" href="#TOC1">LIMITING PCRE RESOURCE USAGE</a><br> |
<br><a name="SEC10" href="#TOC1">LIMITING PCRE RESOURCE USAGE</a><br> |
197 |
<P> |
<P> |
265 |
</P> |
</P> |
266 |
<br><a name="SEC15" href="#TOC1">REVISION</a><br> |
<br><a name="SEC15" href="#TOC1">REVISION</a><br> |
267 |
<P> |
<P> |
268 |
Last updated: 16 April 2007 |
Last updated: 05 June 2007 |
269 |
<br> |
<br> |
270 |
Copyright © 1997-2007 University of Cambridge. |
Copyright © 1997-2007 University of Cambridge. |
271 |
<br> |
<br> |