All glossary terms
Solidity

Storage Packing

An EVM gas optimization where multiple state variables are packed into a single 32-byte storage slot. Reading one slot costs 2,100 gas. Uniswap V2 packs both reserves (uint112 each) and a timestamp (uint32) into one slot: 112 + 112 + 32 = 256 bits, saving 2,100 gas per read compared to separate slots.

Related terms in Solidity