Swap
← Research library

Foundations · November 6, 2026

When a faster search still uses too much memory

A change in the way the decoder stored temporary search tables helped on reused inputs. A prospectively defined synthetic cohort exposed a smaller saving.

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.

MeasurePreviously examined draftsNew synthetic drafts
Jobs30,92530,271
Crossing jobs3,4723,381
Crossing-job p994.745 ms4.725 ms
Peak footprint saved5.484 MiB2.313 MiB
Required saving3 MiB3 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

← Browse all research