4 ms·
Hey, it's a ring buffer for people. Traditionally, "rotating" a ring buffer meant incrementing the pointer to the start, or (equivalently) the offset within th
by inopinatus 6y ago
Hey, it's a ring buffer for people.
Traditionally, "rotating" a ring buffer meant incrementing the pointer to the start, or (equivalently) the offset within the ring. But, given where modern processor architectures are at; if the data fits in CPU cache, could there be circumstances where it's better to rotate the entire buffer?