Skip to content

Conversation

@CreeptoGengar
Copy link
Contributor

Replace vector clone with direct field access when calculating transaction root.

Instead of cloning the entire Vec, we now iterate over references and clone only the inner TypedTransaction field.

This reduces memory usage, especially for blocks with many transactions.

Copy link
Member

@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 can even get rid of the entire clone+collect

@mattsse mattsse enabled auto-merge October 31, 2025 21:27
@mattsse mattsse added this pull request to the merge queue Oct 31, 2025
Merged via the queue into foundry-rs:master with commit d7f3084 Oct 31, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Oct 31, 2025
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