I'm not sure it is productive to worry about optimizing at this level. As a rule, it is more important to make the program work and move on to the next problem.
, , loop unswitching, . , , . ( , , .)
, , , , .
, , , , ...
, . , . , , "--", ---... , . , ...