Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

perf: add a dyn Cheatcode trait to reduce generated code #7082

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

DaniPopes
Copy link
Member

Removes 280_854 LLVM lines in foundry-evm (1_868_826 to 1_587_972, -15%)

With the next Revm update this should go down a further 30-40%, as currently basically all of revm is parameterized across 16 evm specs and 2 dbs of our own.

This should significantly improve compile times and compile memory usage.

Raw data (random cargo llvm-lines --lib --release -p ... and cargo bloat --bin forge --release): bloat.zip

@DaniPopes DaniPopes merged commit 93f094b into master Feb 11, 2024
18 of 19 checks passed
@DaniPopes DaniPopes deleted the dani/dyn-cheatcode branch February 11, 2024 19:00
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