Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Issue 1061783002: Rearrange SkRecord with small N in mind (Closed)

Created:
5 years, 8 months ago by mtklein_C
Modified:
5 years, 8 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Rearrange SkRecord with small N in mind This rearranges the record pointers and types so they can go in a single array, then preallocates some space for them and for the SkVarAlloc. picture_overhead_draw bench drops from ~1000ns to 500-600ns, with no effect on picture_overhead_nodraw. I don't see any significant effect on large picture recording times from our .skps. BUG=chromium:470553 Committed: https://skia.googlesource.com/skia/+/e2dd9408cd711777afaa9410427fb0d761ab004a Committed: https://skia.googlesource.com/skia/+/29b1afc169576cf5e708e46b74313b5666e66249

Patch Set 1 #

Patch Set 2 : inline allocations #

Patch Set 3 : reverts #

Patch Set 4 : tweaks #

Patch Set 5 : nits #

Total comments: 4

Patch Set 6 : small or fast, pick one #

Patch Set 7 : names etc #

Patch Set 8 : manual packing #

Patch Set 9 : 32-bit fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -86 lines) Patch
M src/core/SkRecord.h View 1 2 3 4 5 6 7 8 11 chunks +43 lines, -82 lines 0 comments Download
M src/core/SkRecord.cpp View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M src/core/SkVarAlloc.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M src/core/SkVarAlloc.cpp View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (12 generated)
mtklein_C
5 years, 8 months ago (2015-04-08 20:28:51 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061783002/100001
5 years, 8 months ago (2015-04-08 20:32:13 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/401)
5 years, 8 months ago (2015-04-08 20:33:46 UTC) #6
reed1
https://codereview.chromium.org/1061783002/diff/80001/src/core/SkRecord.h File src/core/SkRecord.h (right): https://codereview.chromium.org/1061783002/diff/80001/src/core/SkRecord.h#newcode32 src/core/SkRecord.h:32: kLgInlineAllocBytes = 8, // 256 bytes inline, then SkVarAlloc ...
5 years, 8 months ago (2015-04-08 20:34:09 UTC) #7
mtklein
https://codereview.chromium.org/1061783002/diff/80001/src/core/SkRecord.h File src/core/SkRecord.h (right): https://codereview.chromium.org/1061783002/diff/80001/src/core/SkRecord.h#newcode32 src/core/SkRecord.h:32: kLgInlineAllocBytes = 8, // 256 bytes inline, then SkVarAlloc ...
5 years, 8 months ago (2015-04-08 20:36:39 UTC) #9
reed1
I think both of your answers are good, but should somehow be in the code/comments. ...
5 years, 8 months ago (2015-04-08 20:39:10 UTC) #10
reed1
lgtm w/ the hope of clearer consts/names/comments for us naive readers.
5 years, 8 months ago (2015-04-08 20:39:49 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061783002/120001
5 years, 8 months ago (2015-04-08 20:55:43 UTC) #14
mtklein_C
On 2015/04/08 20:39:49, reed1 wrote: > lgtm w/ the hope of clearer consts/names/comments for us ...
5 years, 8 months ago (2015-04-08 20:55:59 UTC) #15
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-08 21:01:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061783002/120001
5 years, 8 months ago (2015-04-08 21:02:15 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:120001) as https://skia.googlesource.com/skia/+/e2dd9408cd711777afaa9410427fb0d761ab004a
5 years, 8 months ago (2015-04-08 21:02:39 UTC) #20
mtklein
A revert of this CL (patchset #8 id:120001) has been created in https://codereview.chromium.org/1068383003/ by mtklein@google.com. ...
5 years, 8 months ago (2015-04-08 21:09:10 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061783002/140001
5 years, 8 months ago (2015-04-09 14:33:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061783002/140001
5 years, 8 months ago (2015-04-09 14:46:01 UTC) #27
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 14:46:47 UTC) #28
Message was sent while issue was closed.
Committed patchset #9 (id:140001) as
https://skia.googlesource.com/skia/+/29b1afc169576cf5e708e46b74313b5666e66249

Powered by Google App Engine
This is Rietveld 408576698