2 ms·
Summary: due to deep pipelines and branch prediction, a tight loop with a single if statement goes fastest if the test nearly always comes out the same way as l
by tromp 4y ago
Summary: due to deep pipelines and branch prediction, a tight loop with a single if statement goes fastest if the test nearly always comes out the same way as last time, and slowest when it is true or false at random.