Files
apache-http-server/server
Yann Ylavic 747df57e08 ap_regex: Use Thread Local Storage (if efficient) to avoid allocations.
PCRE2 wants an opaque context by providing the API to allocate and free it, so
to minimize these calls we maintain one opaque context per thread (in Thread
Local Storage, TLS) grown as needed, and while at it we do the same for PCRE1
ints vectors. Note that this requires a fast TLS mechanism to be worth it,
which is the case of apr_thread_data_get/set() from/to apr_thread_current()
when APR_HAS_THREAD_LOCAL; otherwise we'll do the allocation and freeing for
each ap_regexec().

The small stack vector is used for PCRE1 && !APR_HAS_THREAD_LOCAL only now.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897240 13f79535-47bb-0310-9956-ffa450edef68
2022-01-20 11:09:34 +00:00
..
2020-11-07 18:59:15 +00:00
2020-05-25 05:50:12 +00:00
2017-09-22 13:13:44 +00:00
2020-07-06 12:17:47 +00:00
2016-12-21 16:19:26 +00:00
2021-04-17 20:13:28 +00:00