If not cached, the solidity compiler will read the length of the array from storage during each iteration, that is an extra unnecessary sload operation on each iteration as the length of this array doesn't change during the execution of the loop and can be avoided by saving the length into memory outside of the for block.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.