Since storage writes dominate gas, optimization means: pack multiple small variables into one storage slot, cache storage reads in memory, short-circuit conditions, use calldata for external params, prefer events over storage for data you only read off-chain, and batch operations. On a busy chain these techniques cut user fees substantially — gas efficiency is a core contract-design skill.