perf: move CSI fast-path to top of main loop, add EXE fast-path, improve PRINT unrolling

Address reviewer feedback:
- CSI fast-path is now a condition at the top of the codepoint loop
  instead of inside CLEAR, avoiding table lookups for the common case
- EXE bytes < 0x18 get a fast-path before the CSI check so control
  bytes don't pay the penalty
- PRINT loop unrolling replaced with while-based version that uses
  trueish eval and spares individual length checks in the unrolled case
- Removed misplaced PRINT scan-ahead from CSI dispatch
This commit is contained in:
Ismail Pelaseyed
2026-04-23 14:01:19 +02:00
parent ba7e775a17
commit 6fd7ecc812
6 changed files with 85 additions and 556 deletions
-4
View File
@@ -29,7 +29,3 @@ demo/dist/
# dont commit benchmark folders
.benchmark/
timeline/
# slim-forge
results.tsv
run.log