cc: Optimize ImageDecodeCacheKey::FromDrawImage.
This patch reduces the time spent in ::FromDrawImage call by 50%. Comes with a corresponding perftest. This is a frequently used function when it comes to dealing with software images, so any savings should be good. Perftest result without the sidc change (z620): *RESULT software_image_decode_cache_fromdrawimage: result= 318435.53125 runs/s With the change: *RESULT software_image_decode_cache_fromdrawimage: result= 657221.0625 runs/s (+106%) R=enne@chromium.org, ericrk@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2669933002 Cr-Commit-Position: refs/heads/master@{#447882}
Showing
Please register or sign in to comment