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

Issue 2479373005: Use template parameter to reduce branching in style resolve apply passes (Closed)

Created:
4 years, 1 month ago by alancutter (OOO until 2018)
Modified:
4 years, 1 month ago
Reviewers:
Timothy Loh, rune
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use template parameter to reduce branching in style resolve apply passes The optimisation in https://crrev.com/890e3f57caf40adab7ea377cb50ef6591b6b882e regressed performance on the waterfall perf bots. This patch attempts to reduce the performance regression by moving one of the branches to be compile time evaluated as a template parameter. This optimisation is not being reverted as it is still necessary to prevent a regression when adding an additional CSS property priority that increases the number of apply passes we have to perform. The perf try bots show this change making an improvement of 1-5% on Android, 6-11% on Linux, 0-13% on Windows and 2-7% on Mac. BUG=450466, 644148 Committed: https://crrev.com/851bdd47fcb66176959020a63bbdb3b4b090d845 Cr-Commit-Position: refs/heads/master@{#431122}

Patch Set 1 #

Patch Set 2 : Enum #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -57 lines) Patch
M third_party/WebKit/Source/core/css/resolver/StyleResolver.h View 1 3 chunks +8 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 12 chunks +48 lines, -47 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
alancutter (OOO until 2018)
4 years, 1 month ago (2016-11-09 03:57:51 UTC) #5
rune
lgtm
4 years, 1 month ago (2016-11-09 08:24:15 UTC) #8
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/2479373005/20001
4 years, 1 month ago (2016-11-09 23:27:13 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-10 01:05:12 UTC) #11
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 01:22:18 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/851bdd47fcb66176959020a63bbdb3b4b090d845
Cr-Commit-Position: refs/heads/master@{#431122}

Powered by Google App Engine
This is Rietveld 408576698