gas-optimizations icon indicating copy to clipboard operation
gas-optimizations copied to clipboard

Section on using assembly for gas savings

Open kadenzipfel opened this issue 2 years ago • 0 comments

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

kadenzipfel avatar Jul 04 '22 01:07 kadenzipfel