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

Issue 2336553002: [interpreter] Use hashmap for ConstantArrayBuilder's constant map (Closed)

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

Description

[interpreter] Use hashmap for ConstantArrayBuilder's constant map Uses the base hashmap to store the ConstantArrayBuilder's constant map, which slightly improves the performance of ConstantArrayBuilder::Insert. Includes a small overload of the hashmap LookupOrInsert method, which allows passing in a value creation function instead of just default initialising new values. On Octane's codeload, this gives (on my machine) a 0.27% improvement, which doesn't sound like a lot but I guess every little helps. Committed: https://crrev.com/0134ddae6b6ac73d04a65134de55e77f37374cdb Cr-Commit-Position: refs/heads/master@{#39883}

Patch Set 1 #

Patch Set 2 : Change file name to match class #

Patch Set 3 : Rebased onto master #

Total comments: 5

Patch Set 4 : New version based on the modified base hashmap #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -14 lines) Patch
M src/base/hashmap.h View 1 2 3 4 2 chunks +18 lines, -1 line 0 comments Download
M src/interpreter/constant-array-builder.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M src/interpreter/constant-array-builder.cc View 1 2 3 4 3 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Leszek
First pass, probably not ready for submission. I didn't unify this hashmap with the base ...
4 years, 3 months ago (2016-09-12 12:51:25 UTC) #2
rmcilroy
Overall changes in interpreter look fine, but I'd like to see this integrated into base/hashmap ...
4 years, 3 months ago (2016-09-12 14:17:31 UTC) #3
Leszek Swirski
Splitting this into multiple, more surgical CLs on top of base/hashmap first.
4 years, 3 months ago (2016-09-19 09:18:09 UTC) #4
Leszek Swirski
Updated removing the custom hashmap, PTAL
4 years, 3 months ago (2016-09-20 15:04:59 UTC) #7
rmcilroy
Sorry, missed this - please feel free to ping me if I don't respond to ...
4 years, 3 months ago (2016-09-22 17:56:34 UTC) #8
rmcilroy
Just wondering, are you planning on landing this?
4 years, 2 months ago (2016-09-26 14:00:12 UTC) #9
Leszek Swirski
On 2016/09/26 14:00:12, rmcilroy wrote: > Just wondering, are you planning on landing this? Yes, ...
4 years, 2 months ago (2016-09-26 14:21:15 UTC) #10
rmcilroy
On 2016/09/26 14:21:15, Leszek Swirski wrote: > On 2016/09/26 14:00:12, rmcilroy wrote: > > Just ...
4 years, 2 months ago (2016-09-26 14:48:39 UTC) #11
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/2336553002/100001
4 years, 2 months ago (2016-09-29 15:46:59 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-29 16:14:32 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 16:15:06 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0134ddae6b6ac73d04a65134de55e77f37374cdb
Cr-Commit-Position: refs/heads/master@{#39883}

Powered by Google App Engine
This is Rietveld 408576698