Repository navigation
Reduce identified append allocations - #795
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The common single-record identified chunk append now reuses the existing nonblocking replica readiness fan-out. It shares one encoded frame across all three connections while retaining the original pending payload and attempt identity. All three durable acknowledgments are still required; larger and recovering appends use the existing path.
Three separate WSL data-node processes, 256 four-KiB appends at six corpus/tail points: client allocations fell from about30.1 to6 per append, and allocated bytes from about55.5KiB to8.4KiB. Two complete candidate runs produced the same allocation counts through128MiB of seeded sealed data and a48MiB active tail. The clean control used1.57 CPU-seconds in the client across1536 appends; candidates used0.21 and0.25 CPU-seconds. Timing on the shared PC varied, so these results do not establish corpus-flat latency. Record bytes and measured data-node disk write amplification were unchanged.
Validation:336 existing regressions passed, including lost replies, foreign attempt tags, exact retries, replica restarts and the all-three durable write rule. Test crate opt-level1, production benchmark opt-level3; identical source digest. All-feature/all-target check passed. Each runtime was capped at1GiB with swap disabled and no OOM events. Only the two existing writer/readiness source files change.