forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Improve worker pool performance by using std:make_heap instead of…
… std:priority_queue. This reduces the complexity of building a new "ready to run" queue in WorkerPool::SetTaskGraph() from O(N·log(N)) to O(N). This refactor is also useful for supporting shared worker threads as it makes it easy to reuse the compare function and maintain a heap of ready to run task namespaces. BUG=246546 Review URL: https://codereview.chromium.org/123113002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242833 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
reveman@chromium.org
committed
Jan 2, 2014
1 parent
8ffad4e
commit 161d87a
Showing
1 changed file
with
30 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters