Skip to content

perf: open_snapshot no longer loads the full inventory blob - #1

Merged
CaioWing merged 1 commit into
mainfrom
perf-snapshot-open
Jun 4, 2026
Merged

CaioWing merged 1 commit into
mainfrom
perf-snapshot-open

Conversation

@CaioWing

@CaioWing CaioWing commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Opening a snapshot rehydrated the entire inventory (tens of MB at 100k+)
just to recover the class list, so open time scaled with dataset size
(231ms@100k -> 764ms@300k). Store the class list directly in the small
vN.json payload and read the record without rehydrating the inventory.

Measured: open is now 3-7ms and flat across 100k/200k/300k (was
231/403/764ms). Old snapshots without the classes field fall back to the
inventory blob. diff/show still rehydrate as before.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

Opening a snapshot rehydrated the entire inventory (tens of MB at 100k+)
just to recover the class list, so open time scaled with dataset size
(231ms@100k -> 764ms@300k). Store the class list directly in the small
vN.json payload and read the record without rehydrating the inventory.

Measured: open is now 3-7ms and flat across 100k/200k/300k (was
231/403/764ms). Old snapshots without the classes field fall back to the
inventory blob. diff/show still rehydrate as before.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@CaioWing
CaioWing merged commit 14649a0 into main Jun 4, 2026
8 checks passed
@CaioWing
CaioWing deleted the perf-snapshot-open branch June 4, 2026 12:55
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