Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 53s
Previous version put (define _throttle-ms ...) (define _debounce-ms ...) (define _strip-throttle-debounce ...) inside emit-on's body, redefining them on every call to emit-on. The kernel JIT-compiled the helper fn fresh each invocation, doubling compile time across the suite and pushing many tests over their wall-clock deadline (35 cumulative-only timeouts in the latest batched run, up from 0). Move the three definitions to module-level. Use (set! _throttle-ms nil) (set! _debounce-ms nil) at the top of emit-on to reset state for each call. JIT compilation of _strip-throttle-debounce now happens once. Verified: hs-upstream-expressions/dom-scope went from 18/20 (with two state-related timeouts) back to 20/20, suite wall-time 232s → 75s. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
115 KiB
115 KiB