Files
hakmem/docs/analysis/PHASE81_C2_LOCAL_CACHE_FREEZE_NOTE.md
Moe Charm (CI) 89a9212700 Phase 83-1 + Allocator Comparison: Switch dispatch fixed (NO-GO +0.32%), PROFILE correction, SCORECARD update
Key changes:
- Phase 83-1: Switch dispatch fixed mode (tiny_inline_slots_switch_dispatch_fixed_box) - NO-GO (marginal +0.32%, branch reduction negligible)
  Reason: lazy-init pattern already optimal, Phase 78-1 pattern shows diminishing returns

- Allocator comparison baseline update (10-run SSOT, WS=400, ITERS=20M):
  tcmalloc: 115.26M (92.33% of mimalloc)
  jemalloc: 97.39M (77.96% of mimalloc)
  system: 85.20M (68.24% of mimalloc)
  mimalloc: 124.82M (baseline)

- hakmem PROFILE correction: scripts/run_mixed_10_cleanenv.sh + run_allocator_quick_matrix.sh
  PROFILE explicitly set to MIXED_TINYV3_C7_SAFE for hakmem measurements
  Result: baseline stabilized to 55.53M (44.46% of mimalloc)
  Previous unstable measurement (35.57M) was due to profile leak

- Documentation:
  * PERFORMANCE_TARGETS_SCORECARD.md: Reference allocators + M1/M2 milestone status
  * PHASE83_1_SWITCH_DISPATCH_FIXED_RESULTS.md: Phase 83-1 analysis (NO-GO)
  * ALLOCATOR_COMPARISON_QUICK_RUNBOOK.md: Quick comparison procedure
  * ALLOCATOR_COMPARISON_SSOT.md: Detailed SSOT methodology

- M2 milestone status: 44.46% (target 55%, gap -10.54pp) - structural improvements needed

🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 18:50:00 +09:00

905 B
Raw Blame History

Phase 81: C2 Local Cache — Freeze Note

Decision

Phase 79-1 の結果Mixed SSOT, 10-runより、C2 local cache は NO-GO と判断し、research box として freeze する。

  • Feature: HAKMEM_TINY_C2_LOCAL_CACHE=0/1
  • Result: +0.57%GO threshold +1.0% 未達)
  • Action: default OFF を SSOT/cleanenv に固定し、物理削除は行わないlayout tax 回避)。

SSOT / Cleanenv Policy

  • SSOT harness: scripts/run_mixed_10_cleanenv.sh
    • HAKMEM_TINY_C2_LOCAL_CACHE=${HAKMEM_TINY_C2_LOCAL_CACHE:-0} を適用default OFF

How to Re-enable (research only)

export HAKMEM_TINY_C2_LOCAL_CACHE=1

Rationale (short)

  • lock 統計は「存在」を示すが、頻度が極小だと throughput への寄与が小さい。
  • “削除して速い” は layout tax で符号反転し得るため、freezedefault OFFで保持する。