]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Performance optimization: use a temp buffer on the stack instead
authorBrian Pane <brianp@apache.org>
Thu, 21 Mar 2002 04:17:11 +0000 (04:17 +0000)
committerBrian Pane <brianp@apache.org>
Thu, 21 Mar 2002 04:17:11 +0000 (04:17 +0000)
commit12ff21cd14503fcdd082185fc0f3d8f334651639
tree9e6e8722da7a403e2f197b2bda0c0ceb75d21be1
parentf7ca12313cb2973960a56e51fec7f976321daf63
Performance optimization: use a temp buffer on the stack instead
of a malloc'ed buffer in regexec() in cases where the required
buffer size is small.

This will help us avoid a malloc/free pair when executing mod_rewrite
rules that use $1/$2/etc to reference sequences in the matched pattern.

Note: I've also submitted this change as a patch for PCRE, but because
the next PCRE release isn't planned until later this year I'm
committing it to the httpd-2.0 copy of PCRE in the meantime.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94069 13f79535-47bb-0310-9956-ffa450edef68
srclib/pcre/pcreposix.c