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

Issue 169453006: Optimize StylePropertySet::findPropertyIndex() to improve CSS properties performance (Closed)

Created:
6 years, 10 months ago by Mikhail
Modified:
6 years, 10 months ago
Reviewers:
eseidel
CC:
blink-reviews, dglazkov+blink, rune+blink, apavlov+blink_chromium.org, ed+blinkwatch_opera.com, darktears, eseidel, kenneth.r.christiansen, Nico, tkent, enne (OOO), Julien - ping for review, abarth-chromium, Hajime Morrita, ojan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Optimize StylePropertySet::findPropertyIndex() to improve CSS properties performance The Intel VTune Amplifier profiler pointed out the 'StylePropertySet::findPropertyIndex()' method as a biggest hotspot when running CSS properties performance tests. The reason for the slowness was a significant amount of unneeded work that this method was doing, e.g.: - Checking whether 'PropertySet' is mutable on every cycle iteration. - Working with a proxy 'PropertyReference' object instead of direct access to the 'PropertySet' own data members. The proposed optimization gives a significant performance gain, for example the 'CSS/CSSPropertySetterGetter.html' performance test shows the following. Before the optimization applied: avg 3860.903172938448 runs/s median 3954.754079910417 runs/s stdev 337.5965136262694 runs/s min 3170.2197482668807 runs/s max 4218.408078283424 runs/s After the optimization applied: avg 4522.43958295528 runs/s median 4524.851984183224 runs/s stdev 14.069412192849006 runs/s min 4481.849781528119 runs/s max 4545.219771571736 runs/s Performance gain for the average value is approx. 17% (Linux desktop x64). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167325

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -15 lines) Patch
M Source/core/css/StylePropertySet.h View 3 chunks +9 lines, -0 lines 0 comments Download
M Source/core/css/StylePropertySet.cpp View 3 chunks +32 lines, -15 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mikhail
Could you please have a look?
6 years, 10 months ago (2014-02-17 23:15:16 UTC) #1
Mikhail
On 2014/02/17 23:15:16, mikhail.pozdnyakov wrote: > Could you please have a look? CC'ing more people
6 years, 10 months ago (2014-02-18 11:27:45 UTC) #2
eseidel
lgtm
6 years, 10 months ago (2014-02-18 11:31:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhail.pozdnyakov@intel.com/169453006/1
6 years, 10 months ago (2014-02-18 11:31:54 UTC) #4
commit-bot: I haz the power
6 years, 10 months ago (2014-02-18 11:36:49 UTC) #5
Message was sent while issue was closed.
Change committed as 167325

Powered by Google App Engine
This is Rietveld 408576698