-
Improve KeepRunning loop performance to be similar to the range-based for. (#460) · a37fc0c4Eric authored
This patch improves the performance of the KeepRunning loop in two ways: (A) it removes the dependency on the max_iterations variable, preventing it from being loaded every iteration. (B) it loops to zero, instead of to an upper bound. This allows a single decrement instruction to be used instead of a arithmetic op followed by a comparison.
a37fc0c4
×