From be9bdd7812081353701089900d23d9875b4fa929 Mon Sep 17 00:00:00 2001 From: "Moe Charm (CI)" Date: Fri, 28 Nov 2025 04:32:55 +0900 Subject: [PATCH] ENV Cleanup Step 13: Gate HAKMEM_TINY_REFILL_OPT_DEBUG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/tiny_refill_opt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tiny_refill_opt.h b/core/tiny_refill_opt.h index f43bc2c3..40c66468 100644 --- a/core/tiny_refill_opt.h +++ b/core/tiny_refill_opt.h @@ -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) { -#if HAKMEM_TINY_REFILL_OPT +#if HAKMEM_TINY_REFILL_OPT && !HAKMEM_BUILD_RELEASE static int en = -1; static _Atomic int printed = 0; if (__builtin_expect(en == -1, 0)) {