~/talk

Hitchhiker’s Guide to the EVM

name:Alex Roan
github:alexroan
slides:none on file

Explains five concrete EVM optimizations: replace unused persistent mappings with events to save about 25,000 gas on a transfer, use constant/immutable to cut a read from ~2,500 gas to ~450, avoid repeated sload/sstore by caching to memory (saves ~500 gas in tested case due to EIP‑2929 cold/warm behavior), use smaller types like uint96 and reorder struct fields to pack slots (halves storage slots), and mark storage names so reads/writes are obvious.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Topics
  3. 1:27Gas Golfing
  4. 4:29Dont Store
  5. 6:32Use Constants
  6. 8:27Make it Obvious
  7. 9:35Dont ReadWrite Too Often
  8. 12:41Pack Your structs
  9. 14:00Structure
  10. 14:41Storage
  11. 16:25Uint 96
  12. 17:26Two Slots
  13. 18:54Recap
  14. 19:51Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.