Descriptioncc: 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 #Messages
Total messages: 16 (5 generated)
|