See: Optimizing Performance in Loops