zaqk/for-loop-optimizations

dumb gas efficient for-loops

Solidity
This is stars and forks stats for /zaqk/for-loop-optimizations repository. As of 29 Apr, 2024 this repository has 12 stars and 0 forks.

More optimal for loops While testing out some for-loop optimizations in Solidity we found a significantly cheaper method. Over 20% cheaper than the most common gas saving for loops method per loop. In test.sol there are 3 functions with the total gas cost in comments above them: increment0 : The current most popular gas optimized style for loop w/ unchecked increments increment1 : A cheaper more optimized version of increment0 increment2 : identical to increment2 but optimized even further using...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
ControlCplusControlV/Arbitrage-ExampleSolidity1070150
maticnetwork/pos-portalSolidityJavaScriptShell29102280
code-423n4/2022-08-nounsdaoSolidityHTMLTypeScript4000
saucepoint/0xMonacoSolidityJuliaOther53020
marktoda/paradigm-ctfSolidityJavaScriptRuby40000
unhackedctf/reaperSolidity400170
andrew3009/0xmonacoSolidityJuliaOther17000
goncaloMagalhaes/erc20-low-levelSolidityYul46020
camronh/Lottery-TutorialSolidityJavaScript5060
mudgen/diamond-3-hardhatSolidityJavaScript20301110