3 ms·
For small windows it is possible that an early exit might be counterproductive as it exercises the branch predictor. One would have to test ti see where the cu
by gpderetta 4y ago
For small windows it is possible that an early exit might be counterproductive as it exercises the branch predictor.
One would have to test ti see where the cutoff is, but often doing extra work is faster.
Edit: but this is discussed elsethread.
A fixed size run also helps with vectorization.