Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 1482443002: Change HistoryInfoMap to use unordered_map. (Closed)

Created:
5 years ago by Georges Khalil
Modified:
4 years, 10 months ago
Reviewers:
Peter Kasting, Mark P
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change HistoryInfoMap to use unordered_map. This change speeds up the omnibox by 5-10% in my (limited) tests, using a large profile and checking the value of the Omnibox.CharTypedToRepaintLatency histogram. This was also validated when profiling, where the find method was the top function where CPU cycles were consumed. After switching to a hash map, it was a non factor. Note: As far as I can tell, the order is not important, so this change doesn't alter expected behavior. BUG=574181 Committed: https://crrev.com/6ddf83a44cb65d2540e8b78c4ff56d240a1d0597 Cr-Commit-Position: refs/heads/master@{#362532} Committed: https://crrev.com/b7f91c31bce64a4bd61b16ce52cc9314e09cca57 Cr-Commit-Position: refs/heads/master@{#373349}

Patch Set 1 #

Patch Set 2 : Switch to hash_map. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M components/omnibox/browser/in_memory_url_index_types.h View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 31 (11 generated)
Georges Khalil
Mark, PTAL. I think this change doesn't change expected behavior, but you would know better. ...
5 years ago (2015-11-25 18:19:33 UTC) #3
Mark P
I'll have to think about this. I know some of the stl containers in this ...
5 years ago (2015-11-25 19:13:21 UTC) #4
Georges Khalil
In my tests, I did not see any difference.
5 years ago (2015-11-25 20:14:56 UTC) #5
Peter Kasting
I don't have any memory on this, so like Mark, I'd simply have to peer ...
5 years ago (2015-11-25 22:58:49 UTC) #6
Mark P
On 2015/11/25 22:58:49, Peter Kasting wrote: > I don't have any memory on this, so ...
5 years ago (2015-11-25 23:05:05 UTC) #7
Mark P
Thanks for working on this omnibox performance improvement! for the record, I (like you I ...
5 years ago (2015-11-30 21:14:08 UTC) #9
Georges Khalil
Switched to hash_map (same result as unordered_map) and updated description. LMK what you think.
5 years ago (2015-12-01 20:52:01 UTC) #11
Mark P
lgtm For the record in case you plan to make additional improvements to the InMemoryIndex, ...
5 years ago (2015-12-01 21:03:41 UTC) #12
Peter Kasting
Mark's approval is sufficient for this change; if he audited this and is fine with ...
5 years ago (2015-12-01 21:08:09 UTC) #13
Georges Khalil
On 2015/12/01 21:08:09, Peter Kasting wrote: > Mark's approval is sufficient for this change; if ...
5 years ago (2015-12-01 21:16:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1482443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1482443002/20001
5 years ago (2015-12-01 21:17:16 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-01 22:27:47 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/6ddf83a44cb65d2540e8b78c4ff56d240a1d0597 Cr-Commit-Position: refs/heads/master@{#362532}
5 years ago (2015-12-01 22:28:34 UTC) #20
Georges Khalil
On 2015/12/01 22:28:34, commit-bot: I haz the power wrote: > Patchset 2 (id:??) landed as ...
5 years ago (2015-12-17 15:42:26 UTC) #21
Georges Khalil
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1566443002/ by georgesak@chromium.org. ...
4 years, 11 months ago (2016-01-05 20:09:26 UTC) #23
Mark P
On 2016/01/05 20:09:26, Georges Khalil wrote: > A revert of this CL (patchset #2 id:20001) ...
4 years, 10 months ago (2016-02-03 21:15:12 UTC) #24
Georges Khalil
On 2016/02/03 21:15:12, Mark P wrote: > On 2016/01/05 20:09:26, Georges Khalil wrote: > > ...
4 years, 10 months ago (2016-02-03 21:17:29 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1482443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1482443002/20001
4 years, 10 months ago (2016-02-03 21:17:51 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-03 22:09:27 UTC) #29
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 22:10:59 UTC) #31
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b7f91c31bce64a4bd61b16ce52cc9314e09cca57
Cr-Commit-Position: refs/heads/master@{#373349}

Powered by Google App Engine
This is Rietveld 408576698