Skip to content

Improve merge_apply_inserts#4310

Merged
Centril merged 3 commits intomasterfrom
centril/better-merge_apply_inserts
Mar 24, 2026
Merged

Improve merge_apply_inserts#4310
Centril merged 3 commits intomasterfrom
centril/better-merge_apply_inserts

Conversation

@Centril
Copy link
Copy Markdown
Contributor

@Centril Centril commented Feb 16, 2026

Description of Changes

This recovers a bit of lost performance from event tables by:

  • avoiding putting the row: ProductValue in a vector before merging into the committed state.
  • directly constructing Arc<[ProductValue]>

This also shaves off 8 bytes from ReplicaCtx.

API and ABI breaking changes

None

Expected complexity level and risk

2?

Testing

Covered by existing tests.

@Centril Centril changed the title Centril/better merge apply inserts Improve merge_apply_inserts Feb 16, 2026
@Centril Centril requested a review from gefjon February 16, 2026 20:59
@Centril Centril force-pushed the centril/better-merge_apply_inserts branch from cfeee62 to cce37ee Compare March 24, 2026 15:00
Comment thread crates/datastore/src/locking_tx_datastore/committed_state.rs
@Centril Centril enabled auto-merge March 24, 2026 15:22
@Centril Centril added this pull request to the merge queue Mar 24, 2026
Merged via the queue into master with commit 6b08970 Mar 24, 2026
32 of 33 checks passed
@Centril Centril deleted the centril/better-merge_apply_inserts branch March 31, 2026 10: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.

2 participants