perf: add a dyn Cheatcode trait to reduce generated code #7082
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 ...
andcargo bloat --bin forge --release
): bloat.zip