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

Pack multiple variables into single EVM storage slot if possible #57

Open
franklinsch opened this issue Jan 12, 2018 · 2 comments
Open
Labels

Comments

@franklinsch
Copy link
Collaborator

i.e. store four 64-bit integers in a single storage slot

Solidity documentation:
https://solidity.readthedocs.io/en/develop/miscellaneous.html#layout-of-state-variables-in-storage

@franklinsch
Copy link
Collaborator Author

franklinsch commented Jan 12, 2018

YUL has a convenient combineu64tou256 function

@DJRHails
Copy link
Member

This will become relevant when we aren't using 256-bits for every type except for Addresses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants