~/talk

The Solidity Optimizooooor

Talkat Solidity Summit 2022 · on Wednesday, 2022-04-20· [web3, compilers-and-language-design]
slides:none on file

Claim: the Yul/IR pipeline applies optimizations the legacy bytecode pass cannot, turning a multiplication-by-two into a shift across basic blocks and hoisting invariant storage reads (pulling array length out of loops) to save about 100 gas per iteration. Practical notes: copying storage into memory is often redundant under --via-ir, inspect generated assembly with --asm or online at codevault.org, always benchmark different function dispatch layouts, and rely on built-in assertions plus fuzzing and symbolic checks for correctness—no known on-chain compiler-caused failures.

AI-written summary · about

  1. 0:00Solidity optimizer intro
  2. 1:55Need for Solidity optimizer
  3. 2:37Solidity compilation
  4. 5:31Bytecode optimizations
  5. 8:21Bytecode optimizer limits
  6. 10:31Yul optimizer benefits
  7. 12:15Storage access in loops
  8. 14:24Benchmarking optimizations
  9. 17:37Future optimizer improvements
  10. 20:08Compiler safety
  11. 23:42Use Yul optimizer
  12. 24:23Q&A: Storage caching
  13. 26:30Q&A: Yul vs legacy
  14. 27:12Q&A: Yul in old versions
  15. 28:17Q&A: Function dispatch
  16. 29:04Q&A: Fuzzing results
~/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.