Skip to content

Conversation

@donatik27
Copy link
Contributor

Preallocates removed_accounts vector to state.accounts.len() + results.len() to avoid reallocations during sparse trie updates. Upper bound is known upfront, so this reduces allocations in the hot path with zero risk.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

we dont know how mayn

@mattsse mattsse closed this Feb 1, 2026
@github-project-automation github-project-automation bot moved this from Backlog to Done in Reth Tracker Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants