• vmpstr's avatar
    cc: Optimize the tile map key hash for 4-byte size_t. · 1dfbd103
    vmpstr authored
    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
    
    Review URL: https://codereview.chromium.org/1133243010
    
    Cr-Commit-Position: refs/heads/master@{#330448}
    1dfbd103
picture_layer_tiling.h 14 KB