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

Issue 2640863003: Inline PrePaintTreeWalk private methods and static functions (Closed)

Created:
3 years, 11 months ago by Xianzhu
Modified:
3 years, 11 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Inline PrePaintTreeWalk private methods and static functions This reduces overhead of function calls, including function prologues and epilogues, handling of parameters and return values (especially for LayoutRect parameters). The methods and functions are very hot but most of them are called from only one place. Also added 'static' keyword to local functions to prevent the compiler from generating full functions for them. BUG=678597 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2640863003 Cr-Commit-Position: refs/heads/master@{#444672} Committed: https://chromium.googlesource.com/chromium/src/+/b297e151503a1eef82426df4f13d6285b7d94d4f

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : ALWAYS_INLINE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -48 lines) Patch
M third_party/WebKit/Source/core/paint/PaintInvalidator.h View 1 2 1 chunk +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h View 1 2 1 chunk +27 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 7 chunks +19 lines, -21 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (17 generated)
Xianzhu
3 years, 11 months ago (2017-01-18 18:35:54 UTC) #4
Xianzhu
https://codereview.chromium.org/2640863003/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (left): https://codereview.chromium.org/2640863003/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#oldcode358 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:358: } // namespace Alternately we can enclose all local ...
3 years, 11 months ago (2017-01-18 18:37:55 UTC) #6
pdr.
https://codereview.chromium.org/2640863003/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h (right): https://codereview.chromium.org/2640863003/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h#newcode118 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h:118: inline static void updatePaintOffsetTranslation( After seeing your other inline ...
3 years, 11 months ago (2017-01-18 18:51:58 UTC) #11
Xianzhu
https://codereview.chromium.org/2640863003/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h (right): https://codereview.chromium.org/2640863003/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h#newcode118 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h:118: inline static void updatePaintOffsetTranslation( On 2017/01/18 18:51:58, pdr. wrote: ...
3 years, 11 months ago (2017-01-18 19:17:34 UTC) #12
Xianzhu
*Sorry I posted wrong information above. Actually the 'inline's didn't work. ALWAYS_INLINE works.* More details ...
3 years, 11 months ago (2017-01-18 19:38:19 UTC) #13
Xianzhu
My profiling on Linux showed speedup of the following functions, with ALWAYS_INLINEs: - PaintPropertyTreeBuilder::updatePropertiesForSelf(): 6.7% ...
3 years, 11 months ago (2017-01-18 20:39:57 UTC) #14
pdr.
On 2017/01/18 at 20:39:57, wangxianzhu wrote: > My profiling on Linux showed speedup of the ...
3 years, 11 months ago (2017-01-18 21:46:11 UTC) #17
Xianzhu
On 2017/01/18 21:46:11, pdr. wrote: > On 2017/01/18 at 20:39:57, wangxianzhu wrote: > > My ...
3 years, 11 months ago (2017-01-18 21:56:35 UTC) #18
Xianzhu
Will land this after several hours so that we can distinguish the performance impacts of ...
3 years, 11 months ago (2017-01-18 22:07:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640863003/40001
3 years, 11 months ago (2017-01-19 07:17:40 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 07:22:16 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b297e151503a1eef82426df4f13d...

Powered by Google App Engine
This is Rietveld 408576698