Skip to content

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

Merged
DaniPopes merged 1 commit intomasterfrom
dani/evm-dyn-dbext
Sep 21, 2024
Merged

chore(evm): use dyn DatabaseExt in inspect#8921
DaniPopes merged 1 commit intomasterfrom
dani/evm-dyn-dbext

Conversation

@DaniPopes
Copy link
Copy Markdown
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 disabled auto-merge September 21, 2024 14:55
@DaniPopes DaniPopes enabled auto-merge (squash) September 21, 2024 15:05
Copy link
Copy Markdown
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
@DaniPopes DaniPopes deleted the dani/evm-dyn-dbext branch September 21, 2024 15:16
@DaniPopes
Copy link
Copy Markdown
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
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