3 ms·
According to Apple developer documentation GCD is currently designed for this scenario https://developer.apple.com/documentation/apple-silicon/tuning-your-code
by xcv123 3y ago
According to Apple developer documentation GCD is currently designed for this scenario
https://developer.apple.com/documentation/apple-silicon/tuning-your-code-s-performance-for-apple-silicon#Execute-Tasks-Using-Grand-Central-Dispatch https://developer.apple.com/documentation/apple-silicon/tuni...
"On a Mac with Apple silicon, GCD takes into account the differences in core types, distributing tasks to the appropriate core type to get the needed performance or efficiency."
- astrange 3y agoIt is now, but that's mostly from evolution in the iOS era. But like I said, it's not perfect.
- krackers 3y agothat's probably assuming you set the qos correctly.
- astrange 3y agoAnd dispatch_async loses QoS while dispatch_sync keeps it, but people often used to async unnecessarily.
- krackers 3y ago>dispatch_async loses QoS Wait really? Where can I read more about this, this goes against what I would assume. Edit: Or do you mean that when dispatch_async the block is run with the QoS of target queue instead of source? That is what I would normally expect, if you want to "inherit priority" then dispatch_sync would do that, at the expense of blocking.