forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Extensions] Use vector instead of set for sorting handlers.
ManfestHandlerRegistry::SortManifestHandlers() uses std::set to hold pointers to the unsorted handlers while it's building the priority map of handlers. This about 6x slower than just putting the pointers into a vector and there is no need for any of the properties of std::set (fast key lookup, uniqueness). Bug: 847237 Change-Id: Ia55b53de929fb7ee782e36be5b4002bc988da4c9 Reviewed-on: https://chromium-review.googlesource.com/1204604 Commit-Queue: David Bertoni <dbertoni@chromium.org> Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#588733}
- Loading branch information
David Bertoni
authored and
Commit Bot
committed
Sep 5, 2018
1 parent
50b58db
commit 88a71c1
Showing
3 changed files
with
29 additions
and
16 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
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
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