|
|
506d8f2e5e
|
Phase: Pool API Modularization - Step 8 (FINAL): Extract pool_alloc_v1_box.h
Extract 288 lines: hak_pool_try_alloc_v1_impl() - LARGEST SIZE
- New box: core/box/pool_alloc_v1_box.h (v1 alloc baseline, no hotbox_v2)
- Updated: pool_api.inc.h (add include, remove extracted function)
- Build: OK, bench_mid_large_mt_hakmem: 8.01M ops/s (baseline ~8M, within ±2%)
- Risk: MEDIUM (simpler than v2 but large function, validated)
- Result: pool_api.inc.h reduced from 909 lines to ~40 lines (95% reduction)
ALL 5 STEPS COMPLETE (Steps 4-8):
- Step 4: pool_block_to_user_box.h (30 lines) - helpers
- Step 5: pool_free_v2_box.h (121 lines) - v2 free with hotbox
- Step 6: pool_alloc_v1_flat_box.h (103 lines) - v1 flatten TLS
- Step 7: pool_alloc_v2_box.h (277 lines) - v2 alloc with hotbox
- Step 8: pool_alloc_v1_box.h (288 lines) - v1 alloc baseline
Total extracted: 819 lines
Final pool_api.inc.h size: ~40 lines (public wrappers only)
Performance: MAINTAINED (8M ops/s baseline)
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
2025-12-12 22:28:13 +09:00 |
|