Skip to content

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jul 23, 2025

Removes overhead of InspectorStackMutRef for step/step_end, the rest of the functions are fine for code dedup.

About ~25-30% faster test execution speed.

@DaniPopes DaniPopes force-pushed the dani/evm-perfs-1234 branch from d49b096 to 38db3da Compare July 23, 2025 15:58
@DaniPopes DaniPopes force-pushed the dani/evm-perfs-1234 branch from 38db3da to 7948c09 Compare July 23, 2025 16: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.

makes sense

Comment on lines -819 to +829
&mut self.edge_coverage,
&mut self.cheatcodes,
&mut self.script_execution_inspector,
&mut self.chisel_state,
&mut self.printer,
&mut self.revert_diag
&mut self.revert_diag,
// Keep `cheatcodes` last to make use of the tail call.
&mut self.cheatcodes,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, the order never mattered, so we can do this

@DaniPopes DaniPopes merged commit 575279d into master Jul 23, 2025
22 checks passed
@DaniPopes DaniPopes deleted the dani/evm-perfs-1234 branch July 23, 2025 19:34
@github-project-automation github-project-automation bot moved this to Done in Foundry Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants