DescriptionOutline SkSpinlock::acquire().
The proportion of time spent doing useful work is well over 99% in acquire(),
so outlining it doesn't hurt speed at all, and makes it much easier to pick out
on a profile.
It'd be about 50/50 work/overhead if we outlined the extremely-cheap release().
I also tried outlining some SkRefCnt methods with similar mixed results.
BUG=skia:
No public API changes.
TBR=reed@google.com
Committed: https://skia.googlesource.com/skia/+/828877d7267bcb7c272a1df4e36a6a79894bf00d
Patch Set 1 #Patch Set 2 : only acquire() #Patch Set 3 : fixup #Patch Set 4 : contendedAcquire #Patch Set 5 : fighting the compiler #Patch Set 6 : doc #
Messages
Total messages: 27 (10 generated)
|