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.
[Sampling profiler] Use vector for module cache storage
std::map isn't providing a benefit for the ModuleCache internal representation: * it doesn't support range-based lookup so its find() function cannot be used for module lookup by address * it doesn't have random access iterators so lookup via std::upper_bound is O(n) * given the linear performance, it's more complicated to use than vector So switch to vector for the internal representation. R=charliea@chromium.org Bug: 931418 Change-Id: Ica6b47815d3e496f14f6b67de80fb596cc7dc793 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1478939 Commit-Queue: Mike Wittman <wittman@chromium.org> Reviewed-by: Charlie Andrews <charliea@chromium.org> Cr-Commit-Position: refs/heads/master@{#639497}
- Loading branch information
Mike Wittman
authored and
Commit Bot
committed
Mar 11, 2019
1 parent
aa6b7a7
commit 6a4e297
Showing
3 changed files
with
71 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
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