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

Issue 1357193002: update memset16/32 inlining heuristics (Closed)

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

Description

update memset16/32 inlining heuristics I spent some time looking at perf.skia.org and it looks like we can do better. It is weird, weird, weird that on x86, we see three completely different behaviors: - x86 Android: inlining better for small N, custom better for large N; - Windows: inlining better for large N, custom better for small N; - other x86: inlining generally better BUG=skia:4316, chromium:516426 Committed: https://skia.googlesource.com/skia/+/b68fa409fc00ce2f38e2a0fd6f9dc2379b372481 Summaries: https://perf.skia.org/#4179 All traces, log scale: https://perf.skia.org/#4180 TBR=reed@google.com No public API changes. Committed: https://skia.googlesource.com/skia/+/3d096654b910e52768d7335a0c2c7d7cd32c8bb7

Patch Set 1 #

Patch Set 2 : dont forget armv7, INLINE_IF #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -15 lines) Patch
M include/core/SkUtils.h View 1 3 chunks +23 lines, -15 lines 1 comment Download

Messages

Total messages: 19 (8 generated)
mtklein_C
Joe, any chance perf.skia.org + trybots is nearing beta? This'd be one where I'd be ...
5 years, 3 months ago (2015-09-20 21:51:45 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/1357193002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1357193002/1
5 years, 3 months ago (2015-09-20 21:53:42 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-20 21:58:33 UTC) #6
mtklein
Hmm. I've had an idea. I'm going to land this CL then revert it right ...
5 years, 3 months ago (2015-09-20 22:00:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1357193002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1357193002/1
5 years, 3 months ago (2015-09-20 22:01:32 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/b68fa409fc00ce2f38e2a0fd6f9dc2379b372481
5 years, 3 months ago (2015-09-20 22:02:18 UTC) #11
mtklein
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1358793002/ by mtklein@google.com. ...
5 years, 3 months ago (2015-09-20 22:02:46 UTC) #12
jcgregorio
lgtm
5 years, 3 months ago (2015-09-23 20:50:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1357193002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1357193002/20001
5 years, 2 months ago (2015-09-29 17:29:47 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/3d096654b910e52768d7335a0c2c7d7cd32c8bb7
5 years, 2 months ago (2015-09-29 17:39:03 UTC) #17
Noel Gordon
5 years ago (2015-11-25 02:02:25 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/1357193002/diff/20001/include/core/SkUtils.h
File include/core/SkUtils.h (right):

https://codereview.chromium.org/1357193002/diff/20001/include/core/SkUtils.h#...
include/core/SkUtils.h:25: #define INLINE_IF(cond) if (cond) { while (count -->
0) { *buffer++ = value; } return; }
while (count --> 0)

I suppose it compiles, but maybe 

while (count-- > 0)

might be idiomatic here?

Powered by Google App Engine
This is Rietveld 408576698