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

Issue 795043002: Have ElementRuleCollector keep match result vector as part object. (Closed)

Created:
6 years ago by sof
Modified:
6 years ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Have ElementRuleCollector keep match result vector as part object. Simplify the representation of the matched results vector, keeping the vector as a part object. The vector ends up being updated when ElementRuleCollector is used, so lazily creating it gets in the way of that. Not doing so also enables the prompt release of its backing store with Oilpan, as it is an 'inline-capacity' vector. In terms of performance, this brings Oilpan back on level terms with non-Oilpan on blink_perf.layout:SimpleTextPathLineLayout, undoing a 6% regression seen previously (linux.) R=haraken@chromium.org,rune@opera.com BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187007

Patch Set 1 #

Patch Set 2 : Clear vector in dtor instead #

Patch Set 3 : Inline inline-capacity heap vector #

Patch Set 4 : simplify, avoid Oilpan-specific rep #

Total comments: 2

Patch Set 5 : Remove a local binding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -18 lines) Patch
M Source/core/css/ElementRuleCollector.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/ElementRuleCollector.cpp View 1 2 3 4 4 chunks +11 lines, -17 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
sof
Please take a look.
6 years ago (2014-12-11 10:58:13 UTC) #2
haraken
LGTM
6 years ago (2014-12-11 11:12:51 UTC) #3
sof
On 2014/12/11 11:12:51, haraken wrote: > LGTM Thanks, looking into performance & details more closely ...
6 years ago (2014-12-11 11:46:48 UTC) #4
sof
On 2014/12/11 11:46:48, sof wrote: > On 2014/12/11 11:12:51, haraken wrote: > > LGTM > ...
6 years ago (2014-12-11 16:56:32 UTC) #5
sof
On 2014/12/11 16:56:32, sof wrote: > On 2014/12/11 11:46:48, sof wrote: > > On 2014/12/11 ...
6 years ago (2014-12-11 17:10:27 UTC) #6
haraken
rune@, tasak@: Would you take a look at this change?
6 years ago (2014-12-11 23:48:44 UTC) #8
sof
On 2014/12/11 23:48:44, haraken wrote: > rune@, tasak@: Would you take a look at this ...
6 years ago (2014-12-12 07:03:08 UTC) #9
rune
lgtm
6 years ago (2014-12-12 07:06:28 UTC) #10
rune
https://codereview.chromium.org/795043002/diff/60001/Source/core/css/ElementRuleCollector.cpp File Source/core/css/ElementRuleCollector.cpp (right): https://codereview.chromium.org/795043002/diff/60001/Source/core/css/ElementRuleCollector.cpp#newcode231 Source/core/css/ElementRuleCollector.cpp:231: WillBeHeapVector<MatchedRule, 32>& matchedRules = m_matchedRules; Is it really necessary ...
6 years ago (2014-12-12 07:10:36 UTC) #11
sof
https://codereview.chromium.org/795043002/diff/60001/Source/core/css/ElementRuleCollector.cpp File Source/core/css/ElementRuleCollector.cpp (right): https://codereview.chromium.org/795043002/diff/60001/Source/core/css/ElementRuleCollector.cpp#newcode231 Source/core/css/ElementRuleCollector.cpp:231: WillBeHeapVector<MatchedRule, 32>& matchedRules = m_matchedRules; On 2014/12/12 07:10:35, rune ...
6 years ago (2014-12-12 07:13:23 UTC) #12
sof
On 2014/12/12 07:13:23, sof wrote: > https://codereview.chromium.org/795043002/diff/60001/Source/core/css/ElementRuleCollector.cpp > File Source/core/css/ElementRuleCollector.cpp (right): > > https://codereview.chromium.org/795043002/diff/60001/Source/core/css/ElementRuleCollector.cpp#newcode231 > ...
6 years ago (2014-12-12 08:04:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795043002/80001
6 years ago (2014-12-12 08:05:29 UTC) #15
commit-bot: I haz the power
6 years ago (2014-12-12 09:26:48 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187007

Powered by Google App Engine
This is Rietveld 408576698