Chromium Code Reviews
DescriptionMake PendingTask move-only and pass it by value on retaining params
PendingTask is copied several time when it's created and consumed in
MessageLoop, and each copy operation implies two atomicops on ref-count
bump on Callback. This CL removes them by migrating to pass-by-move.
Chrome has performed ~100k atomic ops for Callback ref-count (50k inc
and 50k dec) on the first 15s after boot before this CL, and it will
be reduced to ~50k after this CL.
Committed: https://crrev.com/b6769d5fc8557a8bc03cc3a24fde154ce7a4d1eb
Cr-Commit-Position: refs/heads/master@{#404229}
Patch Set 1 #Patch Set 2 : #
Total comments: 10
Patch Set 3 : #Patch Set 4 : #Patch Set 5 : Remove TaskQueue impl #Patch Set 6 : disable WorkQueue copy #
Total comments: 6
Patch Set 7 : remove PopOutFromPriorityQueue #Patch Set 8 : rebase #Patch Set 9 : mac test fix #
Messages
Total messages: 55 (21 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||