Hacker News new | ask | show | jobs
by jnordwick 3476 days ago
The branch will be properly predicted every time except for when it wraps. This should be faster than any of the alternatives.
1 comments

I fully believe that there are plenty of contexts where that's true - particularly in any throughput oriented system where the buffer is large. But if you care, measure.