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

Issue 2488423003: [base] Probe hashmap using indices rather than pointers (Closed)

Created:
4 years, 1 month ago by Leszek Swirski
Modified:
4 years, 1 month ago
Reviewers:
rmcilroy
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[base] Probe hashmap using indices rather than pointers Using indices rather than pointers to probe the hashmap lets us unconditionally mask the index to ensure it wraps around, rather than branching on the pointer value. This produces slightly more optimal code. Committed: https://crrev.com/3abfc3370938a430f318153f843f42d98eef56e1 Cr-Commit-Position: refs/heads/master@{#40967}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M src/base/hashmap.h View 2 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
Leszek Swirski
I wasn't expecting this to make much of a difference, but funnily enough I see ...
4 years, 1 month ago (2016-11-11 17:12:46 UTC) #4
rmcilroy
Interesting, I wouldn't have expected this to make much of a difference either. LGTM.
4 years, 1 month ago (2016-11-14 13:09:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2488423003/1
4 years, 1 month ago (2016-11-14 14:09:09 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-14 15:01:25 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:32:45 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3abfc3370938a430f318153f843f42d98eef56e1
Cr-Commit-Position: refs/heads/master@{#40967}

Powered by Google App Engine
This is Rietveld 408576698