Files
hakmem/core/tiny_c5_inline_slots.c
Moe Charm (CI) 043d34ad5a Phase 75-2: C5-only Inline Slots (P2) - GO (+1.10%)
Extends Phase 75-1 pattern to C5 class (28.5% of C4-C7 ops):
- Created 4 new boxes: env_box, tls_box, fast_path_api, TLS variable
- Integration: 2 minimal boundary points (alloc/free for C5)
- Test strategy: C5-only isolation (baseline C5=OFF+C6=ON, treatment C5=ON+C6=ON)
- Default OFF: zero overhead when disabled

Results (10-run Mixed SSOT, WS=400, C6 already enabled):
- Baseline (C5=OFF, C6=ON): 44.26 M ops/s (σ=0.37)
- Treatment (C5=ON, C6=ON): 44.74 M ops/s (σ=0.54)
- Delta: +0.49 M ops/s (+1.10%)

Status:  GO - C5 individual contribution confirmed
Cumulative since Phase 75-0: +2.87% (C6) + 1.10% (C5) = potential +3.97% combined
Next: Phase 75-3 (test C5+C6 interaction + non-additivity + promote to preset default)

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

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2025-12-18 08:39:48 +09:00

19 lines
624 B
C

// tiny_c5_inline_slots.c - Phase 75-2: C5 Inline Slots TLS Variable Definition
//
// Goal: Define TLS variable for C5 inline slots
// Scope: C5 class only (1KB per thread)
#include "box/tiny_c5_inline_slots_tls_box.h"
// ============================================================================
// TLS Variable Definition
// ============================================================================
// TLS instance (one per thread)
// Zero-initialized by default (all slots NULL, head=0, tail=0)
__thread TinyC5InlineSlots g_tiny_c5_inline_slots = {
.slots = {0}, // All NULL
.head = 0,
.tail = 0,
};