Files
hakmem/docs/analysis
Moe Charm (CI) 3bf0811c42 Phase 19-6C: Consolidate duplicate tiny_route_for_class() calls in free path
Goal: Eliminate 2-3x redundant route computations (hot→cold→legacy)
- free_tiny_fast_hot() computed route, then free_tiny_fast_cold() recomputed it
- free_tiny_fast() legacy_fallback also computed same route (redundant)

Solution: Pass-down pattern (no function split)
- Create helper: free_tiny_fast_compute_route_and_heap()
- Compute route once in caller context, pass as parameter
- Remove redundant computation from cold path body
- Update call sites to use helper instead of recomputing

Performance: +1.98% throughput (baseline 53.49M → 54.55M ops/s)
- Exceeds expected +0.5-1.0% target
- Eliminates ~15-25 instructions per cold-path free
- Solves route type mismatch (SmallRouteKind vs tiny_route_kind_t)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2025-12-15 21:36:30 +09:00
..