andygrove opened a new pull request, #4893: URL: https://github.com/apache/datafusion-comet/pull/4893
> This PR was created by an LLM as a draft PR. I will mark it as ready for review after human review. ## Which issue does this PR close? N/A — autonomous exploratory PR. ## Rationale for this change Cache the compiled query regex in a thread-local single-slot cache keyed by the query key, eliminating per-row Regex::new() recompilation in parse_url's QUERY-with-key path (key is constant across a batch in practice). ## What changes are included in this PR? Cache the compiled query regex in a thread-local single-slot cache keyed by the query key, eliminating per-row Regex::new() recompilation in parse_url's QUERY-with-key path (key is constant across a batch in practice). ## How are these changes tested? Correctness: unit tests + seeded differential fuzz (bit-identical Arrow output vs `main`). Benchmark (criterion): - query_key: 97.999% faster (base 342913014ns -> cand 6862756ns) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
