Re:Apple CPU tricks: memory reordering, JavaScript support, ...
by muststopmyths on Friday November 27, 2020 @09:42PM
(#25234738)
I guess I understand the ARM behavior, but both this thread and the original one talk about x86 retain/release being faster on M1 as well.
That's the part I'd love someone knowledgeable to explain.
fun fact: retaining and releasing an NSObject takes ~30 nanoseconds on current gen Intel, and ~6.5 nanoseconds on an M1
...
Weaker memory model makes acquire-release atomics possible to implement much more efficiently, in exchange for not hiding some classes of multithreading bugs