Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(evm): use dyn DatabaseExt in inspect #8921

Merged
merged 1 commit into from
Sep 21, 2024
Merged

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Sep 21, 2024

Gets rid of a few more revm monomorphizations (2/6 + 1 with #8919)

Negligible perf impact since Db access is rare and cost of dynamic dispatch is minimal compared to hashmap lookups or network requests that the db does

@DaniPopes DaniPopes enabled auto-merge (squash) September 21, 2024 14:55
@DaniPopes DaniPopes changed the title chore(evm): use DatabaseExt in inspect chore(evm): use dyn DatabaseExt in inspect Sep 21, 2024
@DaniPopes DaniPopes enabled auto-merge (squash) September 21, 2024 15:05
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.

looking forward to 3/6

@DaniPopes DaniPopes merged commit a301f26 into master Sep 21, 2024
20 checks passed
@DaniPopes DaniPopes deleted the dani/evm-dyn-dbext branch September 21, 2024 15:16
@DaniPopes
Copy link
Member Author

Oh sorry that's the amount of revm monomorphizations removed, 3/6 with these 2 PRs

Best case is only 1 left which would be using &mut dyn InspectorExt + &mut dyn DatabaseExt everywhere but I'm getting lifetime errors

rplusq pushed a commit to rplusq/foundry that referenced this pull request Sep 25, 2024
chore(evm): use dyn DatabaseExt in inspect
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants