3 ms·
Maybe this: https://twitter.com/Catfish_Man/status/1326238434235568128 https://twitter.com/Catfish_Man/status/1326238434235568128 fun fact: retaining and relea
by ksherlock 6y ago
Maybe this: https://twitter.com/Catfish_Man/status/1326238434235568128 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
- muststopmyths 6y agoI 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.