Skip to content

Overlap cold preview startup and share collection indexes - #12

Merged
callumalpass merged 3 commits into
mainfrom
perf/cold-preview-heap
Oct 3, 2026
Merged

callumalpass merged 3 commits into
mainfrom
perf/cold-preview-heap

Conversation

@callumalpass

Copy link
Copy Markdown
Contributor

Cold large-collection preview startup now overlaps work that used to run serially, and the collection indexes are shared between the main thread and the compile worker instead of being built twice.

Measured with the perf harness (fixture-corrected, cold cache, Chromium):

before after
Cold preview 3,426 ms 2,134 ms (−38%)
GC-controlled main heap 60.91 MiB 58.28 MiB

Touches compile client, protocol and worker, workspace, Home, and PathIndex in packages/core/src/records.ts.

Testing: pnpm check; 53 cold-cache Chromium perf scenarios.

@callumalpass
callumalpass merged commit 909a2d9 into main Oct 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant