News for hackers. Stuff that matters.
Re:I've been writing ring buffers wrong all these years by lorenzhs on Wednesday December 14, 2016 @05:34PM (#13180314)
Depends heavily on the size of the buffer. If it's only three elements large, then branch overhead will be measurable. But for larger buffers, it likely will always be predicted as not taken, and you only have a branch miss upon wraparound.

There are no comments on this comment yet.