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

Use immutable function type variables #3

Merged

Conversation

LB-thomasp
Copy link
Contributor

Convert _setTstorish, _getTstorish, and _clearTstorish to immutable function type variables that are assigned during construction based on a chain's support for the tstore/tload opcodes.

This allows for bypassing the initial tstore support check saving ~30 gas per internal function call to get, set or clear a tstorish value.

Convert _setTstorish, _getTstorish, and _clearTstorish to immutable function type variables that are assigned during construction based on a chain's support for the tstore/tload opcodes.

This allows for bypassing the initial tstore support check saving ~30 gas per internal function call to get, set or clear a tstorish value.
@0age 0age merged commit a902d8a into ProjectOpenSea:main Apr 2, 2024
1 check passed
@LB-thomasp LB-thomasp deleted the immutable-function-type-variables branch April 3, 2024 00:39
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.

2 participants