ENV Cleanup Step 13: Gate HAKMEM_TINY_REFILL_OPT_DEBUG

Gate the refill optimization debug output behind #if !HAKMEM_BUILD_RELEASE:
- HAKMEM_TINY_REFILL_OPT_DEBUG: Controls refill chain optimization tracing
- File: core/tiny_refill_opt.h:30

Changed condition from:
  #if HAKMEM_TINY_REFILL_OPT
to:
  #if HAKMEM_TINY_REFILL_OPT && !HAKMEM_BUILD_RELEASE

Performance: 30.6M ops/s (baseline maintained)

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm (CI)
2025-11-28 04:32:55 +09:00
parent 417f149479
commit be9bdd7812

View File

@ -27,7 +27,7 @@ static inline void trc_init(TinyRefillChain* c) {
} }
static inline void refill_opt_dbg(const char* stage, int class_idx, uint32_t n) { static inline void refill_opt_dbg(const char* stage, int class_idx, uint32_t n) {
#if HAKMEM_TINY_REFILL_OPT #if HAKMEM_TINY_REFILL_OPT && !HAKMEM_BUILD_RELEASE
static int en = -1; static int en = -1;
static _Atomic int printed = 0; static _Atomic int printed = 0;
if (__builtin_expect(en == -1, 0)) { if (__builtin_expect(en == -1, 0)) {