caching array length #99
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
Handle
pants
Vulnerability details
Vulnerability details
There are many for loops that follows this for-each pattern:
(for example line 227 in FeeSplitter.sol or line 32 in MixinOperatorResolver.sol)
for (uint256 i = 0; i < array.length; i++) {
// do something with
array[i]
}
uint256 length = array.length;
for (uint256 i = 0; i < length; i++) {
// do something with
array[i]
}
The text was updated successfully, but these errors were encountered: