Files
rose-ash/sx
giles f33eaf8f3a Stepper: innerHTML batch update replaces per-span DOM manipulation
Replace update-code-highlight's O(n²) for-each loop (79 nth calls +
79 dom-set-attr FFI crossings) with a single innerHTML set via join/map.
Builds the HTML string in WASM, one FFI call to set innerHTML.

858ms → 431ms (WASM) → 101ms (JIT) → 76ms (innerHTML batch)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 17:12:56 +00:00
..