kadenzipfel / gas-optimizations

List of smart contract optimizations in solidity
610 stars 61 forks source link

Include greater detail as to how gas is saved for technical patterns #3

Open kadenzipfel opened 2 years ago

kadenzipfel commented 2 years ago

for technical gas saving patterns, e.g. https://github.com/KadenZipfel/gas-optimizations/blob/main/gas-saving-patterns/optimal-comparison-operator.md, in which the pattern works because of a solidity compilation gotcha, the mechanism in which gas is saved should be better detailed, e.g. by explaining which opcodes are removed and why