https://github.com/ethereum/solidity/issues/2908 - Struct storage in mapping causes multiple SSTORE calls which are the most costly. This results to 140k gas usage which is over 3$ with low gas price = 20 gwei (~1200$ per ETH currently). The idea is to pack everything to bytes array manually and then parse when needed.
https://github.com/ethereum/solidity/issues/2908 - Struct storage in mapping causes multiple SSTORE calls which are the most costly. This results to 140k gas usage which is over 3$ with low gas price = 20 gwei (~1200$ per ETH currently). The idea is to pack everything to
bytes
array manually and then parse when needed.