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: gas optimizations for vanillaRegistry and mevCommitAVS #416

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

shaspitz
Copy link
Contributor

Describe your changes

Introduces local storage variables to VanillaRegistry and MevCommitAVS functions to reduce storage reads and therefore gas usage. A few existing variables were changed from memory to storage to also save on gas.

Checklist before requesting a review

This PR should be entirely a refactor so tests should remain unchanged.

@shaspitz shaspitz changed the title perf: gas optimizations for vanillaRegistry and MevCommitAVS perf: gas optimizations for vanillaRegistry and mevCommitAVS Sep 27, 2024
@shaspitz shaspitz marked this pull request as ready for review September 27, 2024 05:44
@shaspitz shaspitz merged commit 4549d7f into main Sep 27, 2024
5 checks passed
@shaspitz shaspitz deleted the gas-optimization branch September 27, 2024 20:54
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.

3 participants