Skip to content

Extract replay stuff out of CommittedState, part 1#4804

Open
Centril wants to merge 10 commits intomasterfrom
centril/extract-replay
Open

Extract replay stuff out of CommittedState, part 1#4804
Centril wants to merge 10 commits intomasterfrom
centril/extract-replay

Conversation

@Centril
Copy link
Copy Markdown
Contributor

@Centril Centril commented Apr 14, 2026

Description of Changes

Moves stuff out of datastore.rs and committed_state.rs that has to do with replay into its own module replay.rs.
This also shaves 64 bytes off of CommittedState so that we don't continue carrying the cost of replay after it has finished.

This is a more limited version / part 1 of #4055 which focuses on almost pure code motion so that we're more diligent and careful about the transition. Future PRs will continue with other parts of #4055.

API and ABI breaking changes

None

Expected complexity level and risk

1, just simple and safe code motion.

Testing

Covered by existing tests as this is code motion.

@Centril Centril enabled auto-merge April 14, 2026 15:09
impl MemoryUsage for ReplayCommittedState<'_> {
fn heap_usage(&self) -> usize {
let Self {
state: _, // We don't attribute usage to `CommittedState`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What? That's wacky. I'd like to see a bit more justification here.

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