Basics of Gas Optimization in Solidity Smart Contract
Gas optimization is a matter of doing what is cheap and avoiding what is expensive in terms of gas costs on EVM blockchains.
What is cheap:
Reading constants and immutable variables.
Reading and writing local variables.
Reading and writing memory ...
softskillpro.hashnode.dev4 min read