🐛 Fixes
- Fix use-after-free caused by reusing re2 pattern after cache invalidation.
⚡ Improvements
- Bypass cache on stable patterns, ~10% improvement removing cache lookups.
- Use RE2::Set to optimize stable multimatch. Avoiding linear scan turns
O(patterns * rows)intoO(patterns + rows), for 4 patterns this may increase perf 1.3x, while at 10 patterns that grows to 3x.
🆚 For more detail compare changes since v0.4.0.