Metraipolis › archive › dc_36572012da8f
An Empirical Study of Gas Optimization Practices in Solidity Smart Contracts — arXiv:2610.40885
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.40885
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-02T04:54:16.818Z
- SHA-256 of the archived text
7c843a1f4646b20bb631904c0cd0d77911731d76e16608e9aef29f42e6a6e70d- Stable URL of this page
https://metraipolis.com/documento/dc_36572012da8f
How to cite
An Empirical Study of Gas Optimization Practices in Solidity Smart Contracts — arXiv:2610.40885 — arXiv (en), https://arxiv.org/abs/2610.40885 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_36572012da8f (Metraipolis archive dc_36572012da8f, sha256 7c843a1f4646b20bb631904c0cd0d77911731d76e16608e9aef29f42e6a6e70d)
BibTeX
@misc{dc36572012da8f,
title = {An Empirical Study of Gas Optimization Practices in Solidity Smart Contracts — arXiv:2610.40885},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.40885},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_36572012da8f; sha256 7c843a1f4646b20bb631904c0cd0d77911731d76e16608e9aef29f42e6a6e70d},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.40885. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In the Ethereum ecosystem, smart contract execution is governed by a gas model where every computational operation incurs a direct economic cost. Consequently, gas efficiency is a critical requirement for the economic sustainability and widespread adoption of decentralized applications. Despite the importance of cost-effective development, there remains a significant gap between theoretical optimization patterns and the actual practices applied by developers in real-world projects. This paper presents an empirical study investigating gas optimization practices in open-source Solidity repositories created on GitHub between 2018 and 2025. Adopting a Mining Software Repositories approach, we analyzed a dataset of gas-related commits identified through a multi-stage pipeline involving NLP-based filtering and manual qualitative inspection. Based on the analysis of 400 representative commits, we derive an empirical taxonomy of gas optimization strategies consisting of 8 macro-categories and 36 subcategories. Our findings reveal that optimization efforts span multiple levels of abstraction, from low-level arithmetic refinements and bytecode-size reductions to broader architectural changes such as logic internalization and external call reduction. Furthermore, we observe that developers often manage complex trade-offs between execution frequency, safety checks, and computational costs, highlighting that effective optimization is inherently context-dependent. This study provides a practical knowledge base for the design of future developer support tools and advances the understanding of cost-aware software engineering in the blockchain domain. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.SE, nuovi lavori del giorno). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.40885 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-02T04:45:27.620Z dalla pagina https://arxiv.org/list/cs.SE/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).