finds.dev← search

// the find

0xisk/awesome-solidity-gas-optimization

★ 1,193 · Solidity · Apache-2.0 · updated May 2023

Best resources for Solidity gas optimizations ⛽

A link aggregation repo collecting gas optimization resources for Solidity developers: research papers, articles, Stack Overflow threads, and YouTube videos. No original content — it's a reading list, not a library or tool. Useful as a starting point if you're new to EVM gas mechanics.

Academic papers section is genuinely good — covers static analysis, worst-case gas computation, and EVM opcode costs from 2017–2022, not just blog posts. The Stack Overflow links address specific counter-intuitive behaviors (uint8 costing more than uint256) that trip up experienced developers. Breadth across formats (papers, videos, forums) means different learning styles are covered. The included SaveGas.sol contract gives a concrete reference point alongside the theory.

Dead since May 2023 — the EVM and Solidity compiler have both changed meaningfully since then, so some advice (especially pre-EIP-3529 gas refund guidance) is now wrong. The single SaveGas.sol contract is minimal to the point of being a gesture rather than a useful reference. No coverage of post-Merge optimizations, EIP-1559 fee mechanics, or transient storage (EIP-1153 landed in Cancun). The build status badge is stolen from a different repo (bkrem/awesome-solidity), which is sloppy.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →