rphmeier/jobsteal

Prevent false sharing of jobs

Opened this issue · 3 comments

Crossbeam's CachePadded struct seems good for this.

Jobs are packed into a 256-byte array, which is almost the same strategy as CachePadded.

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.

once #[repr(align = n)] is implemented, we can start doing this on nightly.