3 ms·
Why the alignas 16 for an 8-byte type? In the wasted 8 bytes you could easily fit a type discriminant and a version counter/consistency check for to avoid teare
by gpderetta 3y ago
Why the alignas 16 for an 8-byte type? In the wasted 8 bytes you could easily fit a type discriminant and a version counter/consistency check for to avoid teared read/writes (assuming you can't rely on atomic 128 bit access).
- PaulDavisThe1st 3y agoAnother excellent question that I regret not having an answer to. I'll have to investigate both the git history and also check the performance results of dropping that. EDIT: I think it may be related to this (now fixed) gcc bug:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65147 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65147