Skip to content

Optimize jieba hot paths - #152

Merged
messense merged 9 commits into
mainfrom
codex/perf-optimizations
Jul 6, 2026
Merged

Optimize jieba hot paths#152
messense merged 9 commits into
mainfrom
codex/perf-optimizations

Apply clippy cleanups in tag helpers

21e04f8
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Jul 6, 2026

Performance Gate Passed

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 9 improved benchmarks
✅ 4 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
single_thread 10.5 ms 8.6 ms +22.57%
multi_thread 10.5 ms 8.6 ms +22.05%
textrank 67.1 µs 56.1 µs +19.66%
tfidf 43.4 µs 38.7 µs +11.94%
search_mode 41.5 µs 37.3 µs +11.43%
with_hmm 34.4 µs 30.9 µs +11.14%
cut_all 23.9 µs 21.5 µs +11.11%
default_mode 34.4 µs 31 µs +11.03%
tag 37.1 µs 33.6 µs +10.21%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing codex/perf-optimizations (21e04f8) with main (1e77e50)

Open in CodSpeed