-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use spaces (vs object padding) for ring buffers
Padding is used to avoid false sharing of the cache lines. Previously the bloat of an object (header, etc) was used as filler, which is a little better on a laptop. On a server-class machine, spacing the value out in a primitive array is more efficient. So favoring large machine over small, but the difference is not significant to bother anyone in practice.
- Loading branch information
Showing
1 changed file
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters