replay: prepare status publication and defer checkpoint encoding - #289
Closed
7layermagik wants to merge 17 commits into
Closed
7layermagik wants to merge 17 commits into
7layermagik wants to merge 17 commits into
Conversation
Share lazy encoding state through capture and pruning without retaining parent links or copying synchronization primitives. Keep MTS2 bytes and caller-owned output unchanged; allocate exactly sized node and checkpoint buffers. Check the original wire encoder, concurrent pruning and encoding, output ownership and recovery. Benchmark moving windows including the default 128-root cadence; document retained-memory costs and the all-new-window limit.
Record moving-window results at the real 128-root cadence, retained-memory tradeoffs and unchanged cold-window costs. Keep raw benchmark artifacts outside the source tree; do not infer live voting gains from staging measurements.
This was referenced Sep 24, 2026
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.
Prepare transaction-status publication and move checkpoint work off replay while retaining synchronous AlreadyProcessed checks.
Based on the independent epoch-rewards correctness branch so those fixes remain outside this diff. Retarget to alpenglow-dev after that prerequisite merges.
Validation: full replay and rewards suites pass; combined build and vet pass. Historical Zen 5 default-cadence checkpoint encoding improved from about 195 to 85 ms; this is encoding CPU time, not voting latency or checkpoint disk latency.