Optimize Compressor::rebuild_from by removing full pass on the two-bytes codes#222
Merged
CodSpeed HQ / CodSpeed Performance Analysis
succeeded
Jun 2, 2026 in 0s
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.
⚡ 3 improved benchmarks
✅ 22 untouched benchmarks
🆕 5 new benchmarks
Performance Changes
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | decompress-into-reuse |
687.8 ns | 600.3 ns | +14.58% |
| ⚡ | Simulation | compress-twobytes |
238.6 ns | 209.4 ns | +13.93% |
| ⚡ | Simulation | compress-hashtab |
303.6 ns | 274.4 ns | +10.63% |
| 🆕 | Simulation | mixed-length-table |
N/A | 91.1 µs | N/A |
| 🆕 | Simulation | trained-table |
N/A | 91.8 µs | N/A |
| 🆕 | Simulation | empty-table |
N/A | 90.6 µs | N/A |
| 🆕 | Simulation | one-byte-table |
N/A | 90.6 µs | N/A |
| 🆕 | Simulation | two-byte-table |
N/A | 90.7 µs | N/A |
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 adamg/optimize-rebuild-from (579bf95) with develop (fbe1ce2)
Loading