I have read some GDC posts or even Apple saying that developer should not use the .default
QoS directly, but why? legibility?
I think that assign .default
QoS to a task is the same to not assign a QoS explicitly.
Link from the screenshot belongs: https://developer.apple.com/library/archive/documentation/Performance/Conceptual/EnergyGuide-iOS/PrioritizeWorkWithQoS.html
.default
is there for backwards compatibility reasons since GCD can't guess what priority you want to assign your tasks.
There's two reasons to use the other 4 recommended values:
"I think that assign .default QoS to a task is the same to not assign a QoS explicitly." You're right.
In my opinion, Apple suggests us using other 4 types in general for specific purposes. If you are not sure about this, it will pick .default for your task.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With