bneradt commented on PR #13748: URL: https://github.com/apache/trafficserver/pull/13748#issuecomment-6609728288
Thanks @bryancall. Rebased on master and addressed everything in 2c96b9a5c2: **Blocking, `benchmark_Regex.cc`:** the case is now "Regex match with caller supplied options" and compares `exec(s, m, 0)` with `exec(s, m, 0, opts)` where `opts.match_limit = 100000`. Both paths are still required to match before timing. Built with `-DENABLE_BENCHMARKS=ON` and ran it: the two come in at about 330 us each. **Nit, `regex_remap.cc:118`:** the comment now says only the profiling hit counts are passed in as arguments. **Zero `Options` field:** `get_match_context(opts)` now maps a zero `match_limit` to the shared value, which it reads once with `pcre2_config(PCRE2_CONFIG_MATCHLIMIT, ...)`, so a zero field no longer reaches PCRE2 as a real limit of 0. The comment on that function now says each field must be reapplied on every call and a zero field restores the shared value. **upgrading.en.rst:** moved the Regex entry below the "``Metrics::Storage::createSpan()`` and ``Metrics::rename()`` are also removed" paragraph. The recompile sentence now names only ``Regex::exec(subject, matches, flags)``. **`PCRE2_ERROR_NOMEMORY`:** the `Options` overload's `@return` now says it returns `PCRE2_ERROR_NOMEMORY` when `opts` is not the default and the match context could not be allocated. Tested locally: `test_tsutil "[Regex]"` passes, the ESI unit tests (38) pass, and the regex_remap / esi / regex_revalidate / header_rewrite urtests (28) pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
