Skip to content
40

Awesome Solidity Gas Optimization

Best resources for Solidity gas optimizations ⛽

1.2k stars102 forks63 entriesLast push May 12, 2023 (3 years ago)License Apache-2.0

This page lists names, links and short descriptions. The original list on GitHub is the source and belongs to its authors.

I. Research Papers

MultiCall: A Transaction-batching Interpreter for Ethereum - 2021

Link may be dead

IEEE: Static Profiling and Optimization of Ethereum Smart Contracts Using Resource Analysis - 2021

Arxiv: Under-Optimized Smart Contracts Devour Your Money - 2020

IEEE: Design Patterns for Gas Optimization in Ethereum - 2020

GASOL: Gas Analysis and Optimization for Ethereum Smart Contracts - 2020

Optimization of solidity smart contracts - 2020

A Gas-Efficient Superlight Bitcoin Client in Solidity - 2020

Link may be dead

Arxiv: Profiling Gas Leaks in Solidity Smart Contracts - 2020

ABCDE—agile block chain DApp engineering - 2020

Link may be dead

IEEE: Transformation of Contract Descriptions in a Domain Specific Language to Solidity Assembly - 2020

Developing Cost-Effective Blockchain-Powered Applications: A Case Study of the Gas Usage of Smart Contract…

Link may be dead

Cost Minimization of Solidity Smart Contracts on Blockchain Systems - 2020

Link may be dead

IEEE: GasChecker: Scalable Analysis for Discovering Gas-Inefficient Smart Contracts - 2020

IEEE: Research on Smart Contract Optimization Method on Blockchain - 2019

Springer: Synthesis of Super-Optimized Smart Contracts Using Max-SMT - 2020

Characterizing Efficiency Optimizations in Solidity Smart Contracts - 2020

A Quantitative Analysis of the Ethereum Fee Market: How Storing Gas Can Result in More Predictable Prices.

Springer: Studying gas exceptions in blockchain-based cloud applications - 2020

IEEE: Characterizing Efficiency Optimizations in Solidity Smart Contracts - 2019

Springer: Computing Exact Worst-Case Gas Consumption for Smart Contracts - 2018

Gas Cost Analysis for Ethereum Smart Contracts - 2018

Springer: Optimized Execution of Business Processes on Blockchain - 2017

Saving Deployment Costs of Smart Contracts by Eliminating Gaswasteful Patterns - 2017

EVM Opcode Gas Costs

II. Medium / Articles

Basics of Smart Contract Gas Optimization with Solidity - 2022

Link may be dead

How EIP2535 Diamonds Reduces Gas Costs for Smart Contract Systems - 2022 (Thanks to @mudgen,

https://eip2535diamonds.substack.com/p/how-eip2535-diamonds-reduces-gas

How to Save Gas in your Ethereum Smart Contracts - 2021

Solidity Quick Tip: Efficiently Swap Two Variables - 2021

Link may be dead

How to Write Smart Contracts That Optimize Gas Spent on Ethereum - Medium

Link may be dead

Optimizing your Solidity contract’s gas usage - Medium

Link may be dead

Solidity gas optimization tips - Article

Storage vs. Memory vs. Stack in Solidity & Ethereum

Link may be dead

10 solidity code patterns that optimize the gas utilization of Ethereum smart contracts - 2019

Link may be dead

How to reduce gas cost in Solidity - 2019

Link may be dead

Gas Optimization in Solidity Part I: Variables - 2019

Link may be dead

How to optimize gas cost in a Solidity smart contract? 6 tips - 2019

Solidity tips and tricks to save gas and reduce bytecode size - 2019

Save Gas with Packing in Solidity - 2019

The million dollar question (RU) - 2018

Solidity gas optimization - small int types and structs - 2018

8 Ways of Reducing the Gas Consumption of your Smart Contracts - 2018

Link may be dead

How to Reduce Solidity Gas Costs Full Guide - 2022

Link may be dead

A Collection of Gas Optimisation Tricks - 2022

Solidity Gas Optimizations Cheat Sheet - 2022

III. Q&A / StackOverflow

How to write an optimized (gas-cost) smart contract? - StackOverflow

Link may be dead

Why does uint8 cost more gas than uint256? - StackOverflow

Link may be dead

Use string type or bytes32? - StackOverflow

Link may be dead

Integer types; createPerson function alternatives; Gas; Optimization; View v Pure functions; Non-iterable nature of…

Link may be dead

What’s the best way to optimize the bytecode size of a contract? - 2019

Gas optimization for my smart contract? - 2017

Link may be dead

IV. Video resources / YouTube

EVM Basics — Macro Hackathons - 2022

Gas Golf | Solidity 0.8 - 2022

EVM Bytecode ABI Gas and Gas Price - 2021

Simple Trick to Save Gas in Your Smart Contract - 2021

Storage, Memory and Calldata | Solidity 0.8

Simple Storage | Solidity 0.8

EVM: From Solidity to byte code, memory and storage - 2020

Three tips for optimizing gas - 2019

Link may be dead

Learn Solidity (0.5) - Gas and Gas Price - 2019

DAPPCON 2018: Solidity Dapp Optimization Gonçalo Sá (ConsenSys Diligence) - 2018

Less Gas, More Fun: Optimising Smart Contracts through Yul by Christian Reitwiessner (Devcon4) - 2018

Gas optimization in solidity: 10tips by Julien Klepatch (EatTheBlocks) - 2019

V. Smart-Contracts:

Playpen: is a set of modern, gas-optimized staking pool contracts - 2022

See category
98

Awesome Privacy

pluja/awesome-privacy

Awesome Privacy - A curated list of services and alternatives that respect your privacy because PRIVACY MATTERS.

Fresh★ 20k535 entriesPushed 2 days ago
98

Awesome-Selfhosted

awesome-selfhosted/awesome-selfhosted

A list of Free Software network services and web applications which can be hosted on your own servers

Fresh★ 338k1320 entriesPushed 8 days ago
94

Awesome Privacy

lissy93/awesome-privacy

🦄 A curated list of privacy & security-focused software and services

Fresh★ 10k472 entriesPushed yesterday
93

Awesome Bug Bounty Tools

vavkamil/awesome-bugbounty-tools

A curated list of various bug bounty tools

Fresh★ 6.5k397 entriesPushed 14 days ago
92

Awesome Claude Video Skills

zhuyansen/awesome-claude-video-skills

Open-source skills and toolkits that let Claude Code, Codex and other coding agents make video. 180 repos by type, each security-graded. English / 中文.

Fresh★ 2.2k506 entriesPushed today
91

Awesome Open Source SaaS Alternatives

Anil-matcha/awesome-open-source-saas-alternatives

Open source alternatives to paid SaaS apps: Notion, Slack, Auth0, Vercel and more. Curated list with licenses and GitHub stars.

Fresh★ 3.5k207 entriesPushed today