Solidity Gas Optimizations Pt. 3 - Packing Structs
- 📅2 years ago
How to pack structs efficiently to save gas in Solidity
Packing structs is one of the ways you can optimize your smart contracts, especially if you will be doing multiple read and writes to storage in the same operation. Here we go over how, and some of the caveats associated with this method.