Skip to content

perf(core): skip discarded placement snapshots - #276

Open
marcus-pousette wants to merge 1 commit into
mainfrom
perf/skip-unused-apply-snapshots
Open

marcus-pousette wants to merge 1 commit into
mainfrom
perf/skip-unused-apply-snapshots

Conversation

@marcus-pousette

@marcus-pousette marcus-pousette commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Batch ingestion and history replay read the previous parent/order key and built a snapshot that they immediately discarded.

Share operation application without those reads/copies. Local writes and delta/materialization callers retain their snapshots; node initialization remains unchanged, including ignored operations. Net runtime change: +7 lines, with one focused regression test.

Local native benchmark (M1 Max, structural-triggered replay over 10k prior payload operations, earlier full-key prototype with/without this cleanup): 3.42 → 2.79 ms (~18% less time). Replay/scan counts are unchanged. This is not a standalone-main or phone measurement.

Targets main independently; no dependency on replay-avoidance changes.

Verified: all 90 core tests, Clippy, formatting, and two review passes.

This branch has not been deployed

No deployments
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