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

Issue 2099463002: SkPDF: alloc less memory for strings (Closed)

Created:
4 years, 6 months ago by hal.canary
Modified:
4 years, 6 months ago
Reviewers:
tomhudson, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPDF: alloc less memory for strings before: micros bench 250.98 WritePDFText nonrendering after: micros bench 107.10 WritePDFText nonrendering Also, be slightly more space-efficient in encoding strings. Also, add a bench. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2099463002 Committed: https://skia.googlesource.com/skia/+/ee41b7556dfab48509d61854d256ee523cb8ee4c

Patch Set 1 : 2016-06-23 (Thursday) 16:23:34 EDT #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -63 lines) Patch
M bench/PDFBench.cpp View 2 chunks +20 lines, -0 lines 4 comments Download
M src/pdf/SkPDFDevice.cpp View 3 chunks +21 lines, -21 lines 3 comments Download
M src/pdf/SkPDFTypes.cpp View 2 chunks +4 lines, -14 lines 0 comments Download
M src/pdf/SkPDFUtils.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFUtils.cpp View 1 chunk +26 lines, -24 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2099463002/1
4 years, 6 months ago (2016-06-23 20:04:20 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/9250)
4 years, 6 months ago (2016-06-23 20:10:14 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2099463002/60001
4 years, 6 months ago (2016-06-23 20:29:45 UTC) #12
hal.canary
PTAL
4 years, 6 months ago (2016-06-23 20:31:02 UTC) #14
reed1
The bench is speed? but the CL talks about storage? What is the effect of ...
4 years, 6 months ago (2016-06-23 20:37:20 UTC) #16
tomhudson
https://codereview.chromium.org/2099463002/diff/60001/bench/PDFBench.cpp File bench/PDFBench.cpp (right): https://codereview.chromium.org/2099463002/diff/60001/bench/PDFBench.cpp#newcode212 bench/PDFBench.cpp:212: std::unique_ptr<SkWStream> fWStream; We prefer std::unique_ptr<> to sk_sp<>, I suppose? ...
4 years, 6 months ago (2016-06-23 20:39:11 UTC) #17
tomhudson
On 2016/06/23 20:37:20, reed1 wrote: > The bench is speed? but the CL talks about ...
4 years, 6 months ago (2016-06-23 20:43:45 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-23 20:51:39 UTC) #20
hal.canary
On 2016/06/23 20:37:20, reed1 wrote: > The bench is speed? but the CL talks about ...
4 years, 6 months ago (2016-06-23 20:54:06 UTC) #21
hal.canary
https://codereview.chromium.org/2099463002/diff/60001/bench/PDFBench.cpp File bench/PDFBench.cpp (right): https://codereview.chromium.org/2099463002/diff/60001/bench/PDFBench.cpp#newcode212 bench/PDFBench.cpp:212: std::unique_ptr<SkWStream> fWStream; On 2016/06/23 20:39:11, tomhudson wrote: > We ...
4 years, 6 months ago (2016-06-23 20:57:12 UTC) #22
tomhudson
LGTM https://codereview.chromium.org/2099463002/diff/60001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2099463002/diff/60001/src/pdf/SkPDFDevice.cpp#newcode1089 src/pdf/SkPDFDevice.cpp:1089: SkAutoMalloc buffer(len); // Remove every other byte. On ...
4 years, 6 months ago (2016-06-23 21:03:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2099463002/60001
4 years, 6 months ago (2016-06-23 21:07:22 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 21:08:14 UTC) #27
Message was sent while issue was closed.
Committed patchset #1 (id:60001) as
https://skia.googlesource.com/skia/+/ee41b7556dfab48509d61854d256ee523cb8ee4c

Powered by Google App Engine
This is Rietveld 408576698