Skip to content

perf(op-revm): remove unnecessary enveloped_tx clone in reward_beneficiary#3455

Merged
rakita merged 1 commit intobluealloy:mainfrom
jackwener:fix/op-revm-remove-unnecessary-clone
Mar 2, 2026
Merged

perf(op-revm): remove unnecessary enveloped_tx clone in reward_beneficiary#3455
rakita merged 1 commit intobluealloy:mainfrom
jackwener:fix/op-revm-remove-unnecessary-clone

Conversation

@jackwener
Copy link
Copy Markdown
Contributor

Use all_mut() to simultaneously borrow tx (immutable) and chain/journal (mutable) in reward_beneficiary, avoiding an unnecessary .cloned() that deep-copies the entire enveloped transaction bytes on every non-deposit transaction.

This follows the same pattern already used in validate_against_state_and_deduct_caller.

…ciary

Use all_mut() to simultaneously borrow tx (immutable) and chain/journal
(mutable), avoiding an unnecessary deep copy of the enveloped transaction
bytes on every non-deposit transaction.
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Feb 28, 2026

Merging this PR will not alter performance

✅ 176 untouched benchmarks


Comparing jackwener:fix/op-revm-remove-unnecessary-clone (ca73fb5) with main (f06cdd8)

Open in CodSpeed

Copy link
Copy Markdown
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

lgtm

@rakita rakita merged commit 3985922 into bluealloy:main Mar 2, 2026
31 checks passed
@github-actions github-actions bot mentioned this pull request Mar 2, 2026
@jackwener jackwener deleted the fix/op-revm-remove-unnecessary-clone branch March 3, 2026 06:46
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