-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Refactor access to Checkpoint struct without using memory #4512
Refactor access to Checkpoint struct without using memory #4512
Conversation
|
I would also like in this PR to slightly change some lines in: Since in this contract the structure (-s) is repeatedly written to the memory. Also, I suspect that such structure reading can create an overhead (since However, this may require changing relatively many lines of code, and I'm not sure that such changes are desired for version 5.0. So I would like to hear the opinion of the maintainers on this. I'm not sure if it's worth creating a separate issue for this, but if necessary, I can create one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, gas is slightly impproved.
Open to this experiment if you want to give it a shot, but agree with doing it for 5.1 since we're now focused on quality control for 5.0. Feel free to open a PR though we may just keep it open until post-5.0. |
Fixes mentioned in:
#4495 (comment)
PR Checklist
npx changeset add
)