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

Issue 4536100: Speed up GrBinHashKey computation (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by TomH
Modified:
13 years, 3 months ago
Reviewers:
junov1, reed1
CC:
bsalomon, junov
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Replace Adler32 hash with One-at-a-Time hash, do 32b-wide operations instead of 8b. Approximately 6x speedup for this function in CPU profiles of FishIETank on Linux.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix style nits #

Total comments: 1

Patch Set 3 : Replace Sk macro with Gr macro; partial fix of unit tests. #

Patch Set 4 : Pull out unintended upload of GrGpu.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -11 lines) Patch
M gpu/src/GrBinHashKey.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gpu/src/gr_unittests.cpp View 1 2 5 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 7
TomH
13 years, 3 months ago (2011-06-01 19:12:48 UTC) #1
reed1
LGTM http://codereview.appspot.com/4536100/diff/1/gpu/src/GrBinHashKey.h File gpu/src/GrBinHashKey.h (left): http://codereview.appspot.com/4536100/diff/1/gpu/src/GrBinHashKey.h#oldcode142 gpu/src/GrBinHashKey.h:142: GrAssert(fPass); trivial. how about SkAlign4(len) == len so ...
13 years, 3 months ago (2011-06-01 19:20:31 UTC) #2
TomH
Committed in revision 1472.
13 years, 3 months ago (2011-06-01 19:28:00 UTC) #3
junov1
http://codereview.appspot.com/4536100/diff/5001/gpu/src/GrBinHashKey.h File gpu/src/GrBinHashKey.h (right): http://codereview.appspot.com/4536100/diff/5001/gpu/src/GrBinHashKey.h#newcode160 gpu/src/GrBinHashKey.h:160: while (len >= 4) { Maybe I am missing ...
13 years, 3 months ago (2011-06-01 19:35:48 UTC) #4
TomH
You're right, that should fail the unit test. In practice, this seems to only be ...
13 years, 3 months ago (2011-06-01 19:39:54 UTC) #5
TomH
Calls GrIsALIGN4 instead of SkAlign4, fixing the debug compile problem. Partial patch for the unit ...
13 years, 3 months ago (2011-06-01 20:18:27 UTC) #6
junov1
13 years, 3 months ago (2011-06-02 15:00:30 UTC) #7
On 2011/06/01 20:18:27, TomH wrote:
> Calls GrIsALIGN4 instead of SkAlign4, fixing the debug compile problem.
> Partial patch for the unit tests, but on Linux they appear to be (1) not
easily
> runnable and (2) previously otherwise broken.

LGTM
Sign in to reply to this message.

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