Skip to content

perf: avoid type checks in memo and field lookups - #1174

Draft
MichaReiser wants to merge 12 commits into
salsa-rs:masterfrom
MichaReiser:optimize-memo-lookup
Draft

perf: avoid type checks in memo and field lookups#1174
MichaReiser wants to merge 12 commits into
salsa-rs:masterfrom
MichaReiser:optimize-memo-lookup

fix: remove unused import after rebase

1ff4965
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis failed Jul 9, 2026 in 0s

Performance Regression: -9.6%

⚠️ 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

❌ 5 regressed benchmarks
✅ 69 untouched benchmarks
⏩ 1 skipped benchmark1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
WallTime parallel_fast_path[NoEviction] 361.3 µs 419.9 µs -13.96%
WallTime project_check_then_incremental[NoEviction] 6.1 ms 6.8 ms -11.11%
WallTime parallel_fast_path[Lru] 3.8 ms 4.2 ms -9.87%
WallTime project_check_then_incremental[Lru] 10 ms 10.9 ms -8.75%
WallTime scan_resistance[NoEviction] 836.8 µs 872 µs -4.03%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing MichaReiser:optimize-memo-lookup (1ff4965) with master (25ed9d3)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports.