608Course · Expert
Gas Optimization
Making expensive code cheap.
Making expensive code cheap. Storage layout, packed slots, and assembly tricks — presented in order of impact and with a rule against premature optimization.
- 01
Read a gas profile.
- 02
Identify hot spots.
- 03
Refactor without breaking correctness.
Prerequisites
- — Advanced Solidity.
Pacing
~3 hours.
- IModule
The techniques
The moves, in order of impact.
A Note from the Faculty
Optimize when you have profiled. Not before.