perf(router-core): optimize route tree processing - #7984
Merged
CodSpeed HQ / CodSpeed Performance Analysis
completed
Aug 6, 2026 in 0s
Acknowledged regressions (+39.95% overall)
⚠️ Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.
⚡ 9 improved benchmarks
❌ 4 (👁 4) regressed benchmarks
✅ 167 untouched benchmarks
Performance Changes
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Memory | mem server server-fn-churn (vue) |
4,147.3 KB | 263.1 KB | ×16 |
| ⚡ | Memory | mem server error-paths unmatched (vue) |
2,142.1 KB | 479.4 KB | ×4.5 |
| ⚡ | Memory | mem server peak-large-page (react) |
1,737.5 KB | 953.4 KB | +82.23% |
| ⚡ | Memory | mem server error-paths redirect (solid) |
388 KB | 278.2 KB | +39.49% |
| ⚡ | Memory | mem server error-paths redirect (vue) |
338.6 KB | 293.5 KB | +15.37% |
| ⚡ | Memory | mem server error-paths not-found (react) |
277.7 KB | 255.5 KB | +8.66% |
| ⚡ | Simulation | ssr server-fn multipart (solid) |
64.2 ms | 61.3 ms | +4.64% |
| ⚡ | Simulation | ssr server-fn raw-stream (solid) |
113.2 ms | 108.5 ms | +4.3% |
| ⚡ | Simulation | ssr control-flow unmatched 404 (react) |
58.1 ms | 56.4 ms | +3% |
| 👁 | Memory | mem server error-paths not-found (solid) |
415.1 KB | 789.1 KB | -47.4% |
| 👁 | Simulation | ssr server-fn during document ssr (react) |
62.9 ms | 65.9 ms | -4.62% |
| 👁 | Memory | mem server error-paths redirect (react) |
197 KB | 203.7 KB | -3.31% |
| 👁 | Memory | mem server error-paths unmatched (react) |
317.5 KB | 492.1 KB | -35.49% |
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/consolidate-route-tree-optimizations (fb90b1e) with main (697ebb6)
Loading