gas-optimizations
gas-optimizations copied to clipboard
Section on using assembly for gas savings
some things that can be added:
- use selfbalance opcode instead of address(this).balance
- use iszero opcode instead of if(x)
- https://twitter.com/clemlak/status/1521973218864771073?s=20&t=Bw97nieWjOAs4O2x2Kr8Tg
- etc