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

Issue 1844343004: SkWStream::writeText inlined. (Closed)

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

Description

SkWStream::writeText inlined. Motivation: This function is used throughout SkPDF. Note that the compiler can usually inline the result of strlen() for literal strings. Before: out/Release/nanobench -m WStreamWriteText -q Timer overhead: 24.2ns ! -> high variance, ? -> moderate variance micros bench 6.10 WStreamWriteText nonrendering After: out/Release/nanobench -m WStreamWriteText -q Timer overhead: 23.9ns ! -> high variance, ? -> moderate variance micros bench 2.51 WStreamWriteText nonrendering PDF runtime change: -0.8% ±0.04%. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1844343004 Committed: https://skia.googlesource.com/skia/+/cbc060a70007bcdcc180d74b552f30104c88a805

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -7 lines) Patch
M bench/PDFBench.cpp View 2 chunks +18 lines, -0 lines 0 comments Download
M include/core/SkStream.h View 1 chunk +4 lines, -1 line 1 comment Download
M src/core/SkStream.cpp View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
hal.canary
PTAL
4 years, 8 months ago (2016-04-01 14:38:16 UTC) #4
bungeman-skia
lgtm https://codereview.chromium.org/1844343004/diff/1/include/core/SkStream.h File include/core/SkStream.h (right): https://codereview.chromium.org/1844343004/diff/1/include/core/SkStream.h#newcode205 include/core/SkStream.h:205: return this->write(text, strlen(text)); The win here appears to ...
4 years, 8 months ago (2016-04-01 15:19:18 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844343004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844343004/1
4 years, 8 months ago (2016-04-01 15:19:49 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 15:33:31 UTC) #10
reed1
How does this change affect the speed of generating a PDF doc, not just this ...
4 years, 8 months ago (2016-04-02 14:02:17 UTC) #11
hal.canary
On 2016/04/02 14:02:17, reed1 wrote: > How does this change affect the speed of generating ...
4 years, 8 months ago (2016-04-05 18:06:31 UTC) #12
hal.canary
On 2016/04/05 18:06:31, Hal Canary wrote: > On 2016/04/02 14:02:17, reed1 wrote: > > How ...
4 years, 8 months ago (2016-04-11 21:26:43 UTC) #15
reed1
api lgtm
4 years, 8 months ago (2016-04-12 01:38:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844343004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844343004/1
4 years, 8 months ago (2016-04-12 02:27:29 UTC) #18
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 02:41:52 UTC) #20
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/cbc060a70007bcdcc180d74b552f30104c88a805

Powered by Google App Engine
This is Rietveld 408576698