News for hackers. Stuff that matters.
Re:Apple CPU tricks: memory reordering, JavaScript support, ... by ksherlock on Friday November 27, 2020 @08:29PM (#25234305)
Maybe this: https://twitter.com/Catfish_Man/status/1326238434235568128

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

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.