Inner loop

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In computer programs, an important form of control flow is the loop which causes a block of code to be executed more than once. A common idiom is to have a loop nested inside another loop, with the contained loop being commonly referred to as the inner loop. This is significant because the block within the inner loop will be executed by far the most times, so optimizations for the inner loop will have much more effect on the overall execution than program.