The cost of crossing strokes
When strokes cross, the decoder may need to consider several contact orders for one frame. An early merge table brought the slowest portion of that search under its timing target on the Mac, at the cost of 6.375 MiB of additional process footprint. The next design used memory mappings for temporary per-frame successors and closure scores, releasing the maps at each frame boundary.
Two separate comparisons
Each comparison ran the same baseline and candidate once, serially on the Mac. Both had 87 drafts. Non-timing outputs matched exactly in both. The experiments produced no interval estimate.
| Measure | Previously examined drafts | New synthetic drafts |
|---|---|---|
| Jobs | 30,925 | 30,271 |
| Crossing jobs | 3,472 | 3,381 |
| Crossing-job p99 | 4.745 ms | 4.725 ms |
| Peak footprint saved | 5.484 MiB | 2.313 MiB |
| Required saving | 3 MiB | 3 MiB |
What the new cohort changed
The new cohort held out generation seeds and fixed its crossing variants before measurement. Its smaller footprint saving failed the 3 MiB criterion. On this cohort the candidate also increased wall time from 23.01 to 25.58 seconds, and page reclaims rose from 5,847 to 1,802,005. Identical decoded content and a fast crossing-job percentile could coexist with more system work.
A separate replay of incremental versus fresh computation matched all 58,529 batches across 167 saved drafts. That supported implementation equivalence on those drafts. It left the failed fresh-input resource target and actual keyboard-extension behavior unresolved.
Sources
- Decoder resource research — per-frame VM tables
- Full-bound sequence parity and host measurement plan