0xKitetsu-smdk / Learning-EVM-using-Yul-Huff

Gas Golfing using Huff and Yul

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gas Optimizations / Gas Golfing using Huff , Yul

  • Huff being a low-level programming language, can be used to optimize Smart Contract (which results in less computation cost than Yul and Solidity).

  • Square using Huff

  • Factorial using Huff

    • 50! using Huff consumes 15% less gas than Solidity
    • "solc = 0.8.15; optimizer = true; optimizer_runs = 10000; via-ir = true"

About

Gas Golfing using Huff and Yul


Languages

Language:Solidity 100.0%