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

Issue 1133243010: cc: Optimize the tile map key hash for 4-byte size_t. (Closed)

Created:
5 years, 7 months ago by vmpstr
Modified:
5 years, 7 months ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Optimize the tile map key hash for 4-byte size_t. This patch changes the hash function for the tile map key to use 16 least significant bits from each index. This makes it faster on systems where sizeof(size_t) == 4. The collisions would only start happening after a large enough index. This makes the TilingSetRasterQueueConstructAndIterate test do about 10% more iterations per second on N4. BUG=488636 R=enne, danakj Committed: https://crrev.com/1dfbd1030bd04e76ba41bff933cd2d8fc6d1e3f0 Cr-Commit-Position: refs/heads/master@{#330448}

Patch Set 1 #

Total comments: 2

Patch Set 2 : ijxy #

Patch Set 3 : rebase #

Patch Set 4 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -18 lines) Patch
M cc/tiles/picture_layer_tiling.h View 1 2 2 chunks +29 lines, -1 line 0 comments Download
M cc/tiles/picture_layer_tiling.cc View 1 2 3 4 chunks +17 lines, -17 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
vmpstr
Please take a look.
5 years, 7 months ago (2015-05-18 20:28:59 UTC) #1
enne (OOO)
lgtm % danakj hash expert Also, index_x and index_y should really be index_i and index_j ...
5 years, 7 months ago (2015-05-18 21:14:17 UTC) #2
danakj
I think this is fine, tiles fill some contiguous space within the 32bit integer space. ...
5 years, 7 months ago (2015-05-18 21:16:54 UTC) #3
vmpstr
On 2015/05/18 21:14:17, enne wrote: > lgtm % danakj hash expert > > Also, index_x ...
5 years, 7 months ago (2015-05-18 21:16:58 UTC) #4
vmpstr
https://codereview.chromium.org/1133243010/diff/1/cc/resources/picture_layer_tiling.h File cc/resources/picture_layer_tiling.h (right): https://codereview.chromium.org/1133243010/diff/1/cc/resources/picture_layer_tiling.h#newcode56 cc/resources/picture_layer_tiling.h:56: TileMapKey(int i, int j) : index_x(i), index_y(j) {} On ...
5 years, 7 months ago (2015-05-18 21:20:38 UTC) #5
enne (OOO)
On 2015/05/18 at 21:16:58, vmpstr wrote: > On 2015/05/18 21:14:17, enne wrote: > > lgtm ...
5 years, 7 months ago (2015-05-18 21:27:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133243010/40001
5 years, 7 months ago (2015-05-18 21:30:41 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/90154)
5 years, 7 months ago (2015-05-18 21:45:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133243010/60001
5 years, 7 months ago (2015-05-18 22:16:25 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-18 23:08:00 UTC) #15
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 23:09:48 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1dfbd1030bd04e76ba41bff933cd2d8fc6d1e3f0
Cr-Commit-Position: refs/heads/master@{#330448}

Powered by Google App Engine
This is Rietveld 408576698