Loop Performance
In loops, avoid calculations for which the result never changes—such calculations should typically be placed before the loop.
In loops, avoid calculations for which the result never changes—such calculations should typically be placed before the loop.