Neat optimization trick: reduce the number of jumps in a nested loop
Too Long; Didn't Read
By reordering nested loops you can easily achieve more efficient code, that is, with less code jumps. Credit for the original idea goes to “Code Complete” which was written by Steve McConnell but I am going to expand it a bit further with math…