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

Issue 6339046: Adding checksum to SkFlatData to accelerate SkPicture recording (Closed)

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

Patch Set 1 #

Total comments: 2

Patch Set 2 : Major re-hash #

Patch Set 3 : couple minor adjustments #

Patch Set 4 : making SkFlatData->data() 128-bit aligned to accelerate memcpy #

Total comments: 3

Patch Set 5 : Cleanup checksum code #

Patch Set 6 : Fill padding with zeros in SkPictureFlat creation #

Total comments: 8

Patch Set 7 : Response to review. Adding proper general 64-bit alignment. #

Patch Set 8 : Removed UserConfig change #

Patch Set 9 : Removed 8-byte unnecessary alignment constraint #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -14 lines) Patch
A bench/ChecksumBench.cpp View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download
M bench/PictureRecordBench.cpp View 1 2 3 4 5 6 1 chunk +57 lines, -0 lines 0 comments Download
M gyp/bench.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gyp/core.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A include/core/SkChecksum.h View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 1 comment Download
M include/core/SkDescriptor.h View 1 2 3 4 5 6 2 chunks +4 lines, -11 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 2 3 4 5 6 2 chunks +27 lines, -1 line 0 comments Download
M src/core/SkPictureFlat.cpp View 1 2 3 4 5 6 4 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 27
junov1
Hi Mike, here is a sketch of my work in progress. I am still experimenting ...
12 years, 5 months ago (2012-06-22 14:12:18 UTC) #1
reed1
I like the idea (assuming it pays off in your benchmarks. I also want to ...
12 years, 5 months ago (2012-06-22 15:02:46 UTC) #2
reed1
Is Checksum a better name for this functionality than Hash?
12 years, 5 months ago (2012-06-22 15:07:59 UTC) #3
junov1
Regarding performance: I am geting about 30% speedup on the unique SkPaint test, and about ...
12 years, 5 months ago (2012-06-22 15:19:51 UTC) #4
junov1
On 2012/06/22 15:07:59, reed1 wrote: > Is Checksum a better name for this functionality than ...
12 years, 5 months ago (2012-06-22 15:24:20 UTC) #5
reed1
Ah right. It looked more complicated, but I see it is close to the same ...
12 years, 5 months ago (2012-06-22 15:26:20 UTC) #6
reed1
maybe a separate bench just for these various computechecksum routines...
12 years, 5 months ago (2012-06-22 15:26:55 UTC) #7
junov1
So I squeezed a lot of cyle out of this one... Performance evolved quite a ...
12 years, 5 months ago (2012-06-22 20:58:16 UTC) #8
junov1
About Patch Set 4: I found a way to boost performance yet a bit more ...
12 years, 5 months ago (2012-06-22 21:23:31 UTC) #9
junov1
+skia-review
12 years, 5 months ago (2012-06-22 21:26:38 UTC) #10
reed1
Great news on the performance. I'd still like to have the interface/behavior of the 64bit ...
12 years, 5 months ago (2012-06-25 12:38:05 UTC) #11
junov1
On Mon, Jun 25, 2012 at 8:38 AM, <reed@google.com> wrote: > Great news on the ...
12 years, 5 months ago (2012-06-26 13:30:21 UTC) #12
reed1
http://codereview.appspot.com/6339046/diff/11001/include/core/SkChecksum.h File include/core/SkChecksum.h (right): http://codereview.appspot.com/6339046/diff/11001/include/core/SkChecksum.h#newcode94 include/core/SkChecksum.h:94: result ^= result >> 32; On 2012/06/25 12:38:05, reed1 ...
12 years, 5 months ago (2012-06-26 13:32:57 UTC) #13
junov1
Oh yeah, that was a mistake, I meant 00000000FFFFFFFFULL. But I will take that out, ...
12 years, 5 months ago (2012-06-26 13:35:57 UTC) #14
junov1
Forgot to publish: New patch was uploaded yesterday that addresses review comments
12 years, 5 months ago (2012-06-27 13:29:39 UTC) #15
junov1
I just saw this guy go in: http://code.google.com/p/skia/source/detail?r=4362 I guess I might as well use ...
12 years, 5 months ago (2012-06-27 15:12:48 UTC) #16
reed1
Thanks, I like the simplification that compute64 can rely on 64bit alignment (in ptr and ...
12 years, 5 months ago (2012-06-27 15:13:29 UTC) #17
junov1
http://codereview.appspot.com/6339046/diff/4004/include/config/SkUserConfig.h#newcode178 > include/config/SkUserConfig.h:178: */ > Which platforms will enable this? More global build flags are ...
12 years, 5 months ago (2012-06-27 15:53:38 UTC) #18
reed1
I think, since 1. we do the #ifndef check 2. its experiemental at the moment ...
12 years, 5 months ago (2012-06-27 16:03:08 UTC) #19
reed1
and then remove it if we end up not needing it on android
12 years, 5 months ago (2012-06-27 16:03:30 UTC) #20
junov1
On 2012/06/27 16:03:30, reed1 wrote: > and then remove it if we end up not ...
12 years, 5 months ago (2012-06-27 17:53:15 UTC) #21
reed1
lgtm I wonder if we can make the SkChunkAlloc change cleaner. Seems like (other than ...
12 years, 5 months ago (2012-06-27 17:59:30 UTC) #22
reed1
perhaps we can write a unittest to assert that chunkalloc follows this new rule about ...
12 years, 5 months ago (2012-06-27 17:59:57 UTC) #23
junov1
On 2012/06/27 17:59:30, reed1 wrote: > lgtm > > I wonder if we can make ...
12 years, 5 months ago (2012-06-27 18:31:56 UTC) #24
junov1
Removed the alignment constraint in patch set 9
12 years, 5 months ago (2012-06-27 19:12:50 UTC) #25
reed1
lgtm w/ comment request http://codereview.appspot.com/6339046/diff/16006/include/core/SkChecksum.h File include/core/SkChecksum.h (right): http://codereview.appspot.com/6339046/diff/16006/include/core/SkChecksum.h#newcode35 include/core/SkChecksum.h:35: SkASSERT(SkIsAlign8(size)); Thanks. Probably want a ...
12 years, 5 months ago (2012-06-27 19:14:42 UTC) #26
junov1
12 years, 5 months ago (2012-07-16 19:01:20 UTC) #27
Fixed with r4378
Sign in to reply to this message.

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