Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lorenzhs
on Dec 14, 2016
|
parent
|
context
|
favorite
| on:
I've been writing ring buffers wrong all these yea...
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.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: