Open gates still fail: the parser is slower than in October #228

closed cmc opened this on 2026-11-22 13:14 UTC · feature · milestone 1 Reviews and cleanup

Discussion

cmc 2026-11-22 13:14 UTC

After #187, two open gates still fail on a release build (median of four runs, shared machine):

  • single 1 MB section: 131 ms against 100 ms; DocumentState(bytes:) is 82 ms of it, OrgEditor.init 23 ms;
  • 3,000 entries with drawers (821 kB): 113 ms against 100 ms; the parse is 62 ms, init 39 ms, including folding 6,000 drawers.

csg.org parses in 75 ms; docs/plans/2026-10-04-performance.md recorded 62 ms. Find what made the parser slower since October and bring both opens under the gate. #193 (running the gates in the release scripts) would fail a release until this is fixed.

csg.org memory is also 11.1x against the 10x gate (see #202).

Platforms: Mac, iOS.

closed by cmc in commit 1463e5877b: Speed up parsing and opening files

2026-11-22 18:49 UTC