Mubah_dev
@mubah-dev
I’m solidity, code optimisation is very crucial. Every unoptimised line of code as little as variable declaration would cause you an extra gas fee.
0 reply
0 recast
0 reaction
Mubah_dev
@mubah-dev
ie. A struct with fields uint c; uint32 a; uint32 b; will cost less gas than a struct with fields uint32 a; uint c; uint32 b; because the uint32 fields are clustered together.
0 reply
0 recast
0 reaction