Prevent false sharing of jobs
Opened this issue · 3 comments
rphmeier commented
Crossbeam's CachePadded struct seems good for this.
rphmeier commented
Jobs are packed into a 256-byte array, which is almost the same strategy as CachePadded
.
rphmeier commented
I'd say this isn't fully solved yet -- to really do it I'd say we need to be able to specify custom alignment for types.
rphmeier commented
once #[repr(align = n)] is implemented, we can start doing this on nightly.