I wish we'd get that on x86_64 too. Especially since it seems like an obvious and easy win.
I wish we'd get that on x86_64 too. Especially since it seems like an obvious and easy win.
https://twitter.com/catfish_man/status/1326238434235568128?s...
"Weaker memory model makes acquire-release atomics possible to implement much more efficiently, in exchange for not hiding some classes of multithreading bugs"
https://twitter.com/Catfish_Man/status/1326298205034696705
Heres a snipped quote.
"this further improvement is because uncontended acquire-release atomics are about the same speed as regular load/store on A14"
Another thing is apparently their branch predictor is specially tuned to work with how Objective-c dispatch works (which iirc Swift inherits in places too, and not just when interfacing with Obj-C APIs)