Avoid redundant calls to ScheduleWork
There's no need for ThreadControllerWithMessagePumpImpl::DoWork to call ScheduleWork. Typically it's called in a for loop, or something equivalent. Redundant calls to ScheduleWork are not free and show up on profiles of SequenceManagerPerfTest. Bug: 897751 Change-Id: Iafebf0b574d991ea3b89dfc101aa7326cd35b3c1 Reviewed-on: https://chromium-review.googlesource.com/c/1297137Reviewed-by:Alexander Timin <altimin@chromium.org> Commit-Queue: Alex Clarke <alexclarke@chromium.org> Cr-Commit-Position: refs/heads/master@{#602332}
Showing
Please register or sign in to comment