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
Gas Optimizations #608
Comments
Amazing progress honestly, very cool to see a report that feels custom made! Using immutable on variables that are only set in the constructor and never after (2.1k gas per var)14.7k Pack structs by putting data types that can be packed together next to each other.(Total SLOTS saved: 6 ) ~ 6 * 2k = 12K gas savedI think only 2 are valid, rest are memory values Rest is minor, prob 2k at most 20.7k |
GainsGoblin marked the issue as sponsor confirmed |
The result of a function call should be cached rather than re-calling the function Storage Pointer Avoid contract existence checks by using solidity version 0.8.10 or later Rest is minor, 200 gas I'd say 22100 |
GalloDaSballo marked the issue as grade-a |
See the markdown file with the details of this report here.
The text was updated successfully, but these errors were encountered: