608Course · Expert

Gas Optimization

Making expensive code cheap.

The Course

Making expensive code cheap. Storage layout, packed slots, and assembly tricks — presented in order of impact and with a rule against premature optimization.

Outcomes
  • 01

    Read a gas profile.

  • 02

    Identify hot spots.

  • 03

    Refactor without breaking correctness.

Prerequisites
  • Advanced Solidity.
Pacing

~3 hours.

A Note from the Faculty

Optimize when you have profiled. Not before.