Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(912)

Issue 7378065: Fixed the hash key comparison function. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by sugoi
Modified:
11 years, 7 months ago
Reviewers:
bsalomon, junov1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Fixed the hash key comparison function. Committed: https://code.google.com/p/skia/source/detail?r=7853

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/gpu/GrResourceCache.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
sugoi
11 years, 7 months ago (2013-02-25 16:46:29 UTC) #1
bsalomon
On 2013/02/25 16:46:29, sugoi wrote: D'oh!! Nice find. LGTM.
11 years, 7 months ago (2013-02-25 16:47:19 UTC) #2
junov1
11 years, 7 months ago (2013-02-25 19:38:04 UTC) #3
On 2013/02/25 16:47:19, bsalomon wrote:
> On 2013/02/25 16:46:29, sugoi wrote:
> 
> D'oh!! Nice find. LGTM.

I get why this was not causing any tests to fail: if hashes are identical, we
move on to a full object compare as a safeguard against hash collisions.
I bet this fix will result in a measurable performance improvement due to all
the unnecessary memcmp.

Thinking out loud: When we add optimization strategies (like hashes), it would
be a good idea to also add unit tests that verify that the optimizations
actually kick-in for the cases where we expect it to.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b