Load tokenizer regexes on first ruleset instantiation#446
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #446 +/- ##
==========================================
- Coverage 85.36% 85.07% -0.29%
==========================================
Files 179 178 -1
Lines 9085 9166 +81
Branches 4001 4043 +42
==========================================
+ Hits 7755 7798 +43
- Misses 517 545 +28
- Partials 813 823 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Artifact Size Comparison 📦
|
Benchmarks clangBenchmark execution time: 2025-08-29 13:23:12 Comparing candidate commit 8291cf2 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
Benchmarks gccBenchmark execution time: 2025-08-29 13:23:18 Comparing candidate commit 8291cf2 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
e765aab to
89b66af
Compare
89b66af to
4db447a
Compare
Benchmarks clang-pgoBenchmark execution time: 2025-08-29 13:37:03 Comparing candidate commit 8291cf2 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
389c696 to
49662fd
Compare
49662fd to
8291cf2
Compare
As the title suggests, this PR changes the initialisation process of the tokenizer regular expressions to avoid the static initialisation cost. These regular expressions are now being preloaded / instantiated on the first ruleset instantiation, which also prevent impacting request latency.