Moe Charm (CI)
f7b18aaf13
Phase 5 E5-2: Header Write-Once (NEUTRAL, FROZEN)
Target: tiny_region_id_write_header (3.35% self%)
- Hypothesis: Headers redundant for reused blocks
- Strategy: Write headers ONCE at refill boundary, skip in hot alloc
Implementation:
- ENV gate: HAKMEM_TINY_HEADER_WRITE_ONCE=0/1 (default 0)
- core/box/tiny_header_write_once_env_box.h: ENV gate
- core/box/tiny_header_write_once_stats_box.h: Stats counters
- core/box/tiny_header_box.h: Added tiny_header_finalize_alloc()
- core/front/tiny_unified_cache.c: Prefill at 3 refill sites
- core/box/tiny_front_hot_box.h: Use finalize function
A/B Test Results (Mixed, 10-run, 20M iters):
- Baseline (WRITE_ONCE=0): 44.22M ops/s (mean), 44.53M ops/s (median)
- Optimized (WRITE_ONCE=1): 44.42M ops/s (mean), 44.36M ops/s (median)
- Improvement: +0.45% mean, -0.38% median
Decision: NEUTRAL (within ±1.0% threshold)
- Action: FREEZE as research box (default OFF, do not promote)
Root Cause Analysis:
- Header writes are NOT redundant - existing code writes only when needed
- Branch overhead (~4 cycles) cancels savings (~3-5 cycles)
- perf self% ≠ optimization ROI (3.35% target → +0.45% gain)
Key Lessons:
1. Verify assumptions before optimizing (inspect code paths)
2. Hot spot self% measures time IN function, not savings from REMOVING it
3. Branch overhead matters (even "simple" checks add cycles)
Positive Outcome:
- StdDev reduced 50% (0.96M → 0.48M) - more stable performance
Health Check: PASS (all profiles)
Next Candidates:
- free_tiny_fast_cold: 7.14% self%
- unified_cache_push: 3.39% self%
- hakmem_env_snapshot_enabled: 2.97% self%
Deliverables:
- docs/analysis/PHASE5_E5_2_HEADER_REFILL_ONCE_DESIGN.md
- docs/analysis/PHASE5_E5_2_HEADER_REFILL_ONCE_AB_TEST_RESULTS.md
- CURRENT_TASK.md (E5-2 complete, FROZEN)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-14 06:22:25 +09:00
..
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-12-11 21:32:40 +09:00
2025-12-13 05:10:45 +09:00
2025-11-26 13:14:18 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-10 22:57:26 +09:00
2025-12-08 21:30:21 +09:00
2025-11-26 13:14:18 +09:00
2025-12-07 03:12:27 +09:00
2025-12-08 21:30:21 +09:00
2025-12-07 03:12:27 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-12-08 21:30:21 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-12-07 03:12:27 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-27 04:51:59 +09:00
2025-12-10 23:30:32 +09:00
2025-11-27 04:51:59 +09:00
2025-11-27 03:41:07 +09:00
2025-11-27 03:18:33 +09:00
2025-12-14 05:59:43 +09:00
2025-11-27 04:51:59 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-08 21:30:21 +09:00
2025-12-08 21:30:21 +09:00
2025-12-11 21:21:40 +09:00
2025-12-11 19:17:30 +09:00
2025-11-26 14:45:26 +09:00
2025-12-11 19:11:44 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-13 05:35:46 +09:00
2025-12-13 05:35:46 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-12-12 06:13:15 +09:00
2025-11-26 13:14:18 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-07 03:12:27 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-27 07:30:32 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-13 05:35:46 +09:00
2025-11-26 14:45:26 +09:00
2025-12-03 20:42:28 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-05 12:31:14 +09:00
2025-12-13 05:35:46 +09:00
2025-12-10 14:00:57 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-12-12 01:14:13 +09:00
2025-12-12 18:40:08 +09:00
2025-11-26 13:14:18 +09:00
2025-12-12 16:26:42 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-05 12:31:14 +09:00
2025-12-09 21:50:15 +09:00
2025-11-05 12:31:14 +09:00
2025-12-09 21:50:15 +09:00
2025-11-26 14:45:26 +09:00
2025-12-11 22:45:14 +09:00
2025-11-05 12:31:14 +09:00
2025-12-11 20:05:09 +09:00
2025-12-11 21:37:57 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-10 22:57:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-12-13 18:46:11 +09:00
2025-12-13 18:46:11 +09:00
2025-12-13 18:46:11 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-12-14 00:05:11 +09:00
2025-12-13 22:03:27 +09:00
2025-12-13 22:03:27 +09:00
2025-12-13 18:46:11 +09:00
2025-12-14 00:05:11 +09:00
2025-12-13 22:42:22 +09:00
2025-12-13 22:42:22 +09:00
2025-12-14 00:05:11 +09:00
2025-12-14 00:05:11 +09:00
2025-12-14 00:26:57 +09:00
2025-12-14 04:24:34 +09:00
2025-12-14 00:26:57 +09:00
2025-12-14 01:46:18 +09:00
2025-12-14 02:57:35 +09:00
2025-12-14 01:46:18 +09:00
2025-12-14 01:54:21 +09:00
2025-12-14 04:24:34 +09:00
2025-12-14 04:24:34 +09:00
2025-12-14 04:24:34 +09:00
2025-12-14 04:24:34 +09:00
2025-12-14 00:48:03 +09:00
2025-12-14 00:48:03 +09:00
2025-12-14 00:48:03 +09:00
2025-11-05 12:31:14 +09:00
2025-12-14 04:24:34 +09:00
2025-12-14 05:13:29 +09:00
2025-12-14 05:13:29 +09:00
2025-12-14 05:13:29 +09:00
2025-12-14 05:13:29 +09:00
2025-12-14 05:36:57 +09:00
2025-12-14 04:24:34 +09:00
2025-12-14 05:59:43 +09:00
2025-12-14 05:52:32 +09:00
2025-12-14 05:59:43 +09:00
2025-12-14 06:22:25 +09:00
2025-12-14 06:22:25 +09:00
2025-12-14 05:52:32 +09:00
2025-12-14 05:59:43 +09:00
2025-12-14 05:59:43 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-12-12 18:40:08 +09:00
2025-12-12 18:40:08 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-12-12 06:52:14 +09:00
2025-12-12 07:17:52 +09:00
2025-12-12 06:20:14 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-12-13 05:35:46 +09:00
2025-12-13 05:35:46 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-09 21:50:15 +09:00
2025-11-28 13:42:39 +09:00
2025-11-28 13:42:39 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-12-11 23:51:48 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-05 12:31:14 +09:00
2025-12-04 16:21:54 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-11 23:07:26 +09:00
2025-12-12 16:26:42 +09:00
2025-12-10 22:57:26 +09:00
2025-12-11 01:01:15 +09:00
2025-12-11 15:29:59 +09:00
2025-12-12 06:09:12 +09:00
2025-11-26 13:14:18 +09:00
2025-12-07 03:12:27 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-12-08 21:30:21 +09:00
2025-12-11 20:49:39 +09:00
2025-12-11 21:32:40 +09:00
2025-11-26 14:45:26 +09:00
2025-12-13 18:46:11 +09:00
2025-12-08 21:30:21 +09:00
2025-12-09 21:50:15 +09:00
2025-12-09 21:50:15 +09:00
2025-11-26 14:45:26 +09:00
2025-11-26 14:45:26 +09:00
2025-12-12 16:26:42 +09:00
2025-12-12 16:26:42 +09:00
2025-11-28 13:42:39 +09:00
2025-12-12 18:40:08 +09:00
2025-12-12 03:12:28 +09:00
2025-11-26 13:14:18 +09:00
2025-11-26 13:14:18 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-05 12:31:14 +09:00
2025-11-26 14:45:26 +09:00
2025-12-12 06:09:12 +09:00