54 ms·
> At leas on x86, acq/rel load/stores vs relaxed is basically free. The corollary to this is that using them doesn't buy you any performance (under x86). (Al
by ComputerGuru 3y ago
> At leas on x86, acq/rel load/stores vs relaxed is basically free.
The corollary to this is that using them doesn't buy you any performance (under x86).
(Also it makes it difficult to test that your code itself synchronizes correctly if you're developing on x86, since bugs may only show up under ARM or RISC or whatever, and even there, only some of the time... and that's why project loom, tsan, and miri exist.)