Skip to content

perf(database): avoid clones in BundleState::take_n_reverts#3530

Open
saylor-mik87786 wants to merge 1 commit intobluealloy:mainfrom
saylor-mik87786:perf/database-take-n-reverts-move-split
Open

perf(database): avoid clones in BundleState::take_n_reverts#3530
saylor-mik87786 wants to merge 1 commit intobluealloy:mainfrom
saylor-mik87786:perf/database-take-n-reverts-move-split

Conversation

@saylor-mik87786
Copy link
Copy Markdown
Contributor

Replace split_at plus double to_vec in take_n_reverts with move-based split_off, reducing allocation and recomputation overhead when truncating reverts.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 30, 2026

Merging this PR will not alter performance

✅ 177 untouched benchmarks


Comparing saylor-mik87786:perf/database-take-n-reverts-move-split (8505cc2) with main (99c74f2)

Open in CodSpeed

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.

1 participant