Skip to content

perf: avoid intermediate BAL account allocation - #3775

Merged
rakita merged 1 commit into
bluealloy:mainfrom
mattsse:mattsse/remove-bal-vec-allocation
Jun 24, 2026
Merged

rakita merged 1 commit into
bluealloy:mainfrom
mattsse:mattsse/remove-bal-vec-allocation

Conversation

@mattsse

@mattsse mattsse commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Build BAL account maps directly with preallocated AddressIndexMaps for owned and borrowed Alloy conversions.
  • Remove the intermediate Vec that was only used to feed IndexMap::from_iter.

Impact

This avoids an extra allocation during fallible BAL conversion while preserving existing duplicate-account behavior through IndexMap::insert.

@codspeed

codspeed Bot commented Jun 24, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 181 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing mattsse:mattsse/remove-bal-vec-allocation (e9c3240) with main (84fe60c)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@rakita
rakita merged commit ae95b77 into bluealloy:main Jun 24, 2026
32 of 34 checks passed
This was referenced Jun 18, 2026
This was referenced Jul 22, 2026
RealiCZ added a commit to megaeth-labs/revm that referenced this pull request Sep 18, 2026
…luealloy#3784 bluealloy#3823 bluealloy#3840 (#57)

Co-authored-by: Saylor Mike <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: alpharush <[email protected]>
Co-authored-by: a <[email protected]>
Co-authored-by: rakita <[email protected]>
@RealiCZ RealiCZ mentioned this pull request Sep 18, 2026
43 tasks done
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.

3 participants