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

Issue 239703005: Make Vector<WebCore::NodeEventContext> faster (Closed)

Created:
6 years, 8 months ago by Mikhail
Modified:
6 years, 8 months ago
Reviewers:
eseidel
CC:
blink-reviews, hayato, eseidel, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make Vector<WebCore::NodeEventContext> faster The Intel VTune Amplifier profile detects 'NodeEventContext' destructor (and its subsequent calls) to be the biggest hotspot when running 'EventsDispatchingInDeeplyNestedShadowTrees' performance test. The main reason for it is inefficient Vector<WebCore::NodeEventContext> (and the applied VectorMover in particular). This patch makes the Vector<WebCore::NodeEventContext> more efficient via using SimpleClassVectorTraits for NodeEventContext. Results are the folowing (linux desktop x64, GCC 4.6.3, release content_shell build with enabled 'linux_dump_symbols' flag) before: avg 6359.329553799463 runs/s median 6412.644942400308 runs/s stdev 220.99651799417947 runs/s min 5429.032965593617 runs/s max 6449.434918587015 runs/s after: avg 8059.328340764995 runs/s median 8181.982047553853 runs/s stdev 465.58159603795553 runs/s min 6800.9409740083 runs/s max 8483.844241958124 runs/s The avg performance gain is around 28% Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171814

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M Source/core/events/NodeEventContext.h View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Mikhail
PTAL
6 years, 8 months ago (2014-04-16 14:02:30 UTC) #1
eseidel
Could you add a comment to explain the code? I worry the next person seeing ...
6 years, 8 months ago (2014-04-16 17:06:10 UTC) #2
Mikhail
On 2014/04/16 17:06:10, eseidel wrote: > Could you add a comment to explain the code? ...
6 years, 8 months ago (2014-04-16 20:40:46 UTC) #3
eseidel
lgtm
6 years, 8 months ago (2014-04-16 22:43:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhail.pozdnyakov@intel.com/239703005/1
6 years, 8 months ago (2014-04-16 22:43:44 UTC) #5
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 22:54:26 UTC) #6
Message was sent while issue was closed.
Change committed as 171814

Powered by Google App Engine
This is Rietveld 408576698