Skip to content

Gate prefilter activation for small workloads#261

Open
la3lma wants to merge 1 commit intomasterfrom
codex/improve-performance-of-rmatch-regex
Open

Gate prefilter activation for small workloads#261
la3lma wants to merge 1 commit intomasterfrom
codex/improve-performance-of-rmatch-regex

Conversation

@la3lma
Copy link
Owner

@la3lma la3lma commented Dec 19, 2025

Summary

  • add a configurable activation threshold so both FastPath and legacy match engines skip the Aho-Corasick prefilter when pattern sets are below the tuned cutoff
  • default the threshold to 7000 patterns with safe parsing and fallbacks for invalid values
  • add a regression test demonstrating the latency reduction when prefiltering is bypassed for small workloads

Testing

  • mvn -pl rmatch -Dtest=FastPathPrefilterThresholdTest test (fails: local toolchain lacks Java 25, so Maven cannot honor target release 25)

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant