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

Issue 2393353003: Fix performance issue in InstanceCounters for DOM nodes (Closed)

Created:
4 years, 2 months ago by hajimehoshi
Modified:
4 years, 2 months ago
Reviewers:
haraken
CC:
chromium-reviews, caseq+blink_chromium.org, pfeldman+blink_chromium.org, sof, eae+blinkwatch, lushnikov+blink_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kozyatinskiy+blink_chromium.org, rwlbuis, yhirano
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix performance issue in InstanceCounters for DOM nodes The instance counters have used atomic incrementing/decrementing, but this caused performance issue for dromaeo.domcoremodify test where DOM objects are injected and created. This CL fixes this issue by creating another counter without locks or atomic barriers only for nodes. BUG=641019 Committed: https://crrev.com/964d6ecc9c556e80c53140a2254e93c92deb98a2 Cr-Commit-Position: refs/heads/master@{#423501}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address on reviews #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/Node.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InstanceCounters.h View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InstanceCounters.cpp View 1 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (6 generated)
hajimehoshi
PTAL
4 years, 2 months ago (2016-10-06 08:44:03 UTC) #4
haraken
LGTM https://codereview.chromium.org/2393353003/diff/1/third_party/WebKit/Source/core/inspector/InstanceCounters.cpp File third_party/WebKit/Source/core/inspector/InstanceCounters.cpp (right): https://codereview.chromium.org/2393353003/diff/1/third_party/WebKit/Source/core/inspector/InstanceCounters.cpp#newcode37 third_party/WebKit/Source/core/inspector/InstanceCounters.cpp:37: int InstanceCounters::s_nodeCounter; Add a comment and mention why ...
4 years, 2 months ago (2016-10-06 08:47:10 UTC) #5
hajimehoshi
Thank you! https://codereview.chromium.org/2393353003/diff/1/third_party/WebKit/Source/core/inspector/InstanceCounters.cpp File third_party/WebKit/Source/core/inspector/InstanceCounters.cpp (right): https://codereview.chromium.org/2393353003/diff/1/third_party/WebKit/Source/core/inspector/InstanceCounters.cpp#newcode37 third_party/WebKit/Source/core/inspector/InstanceCounters.cpp:37: int InstanceCounters::s_nodeCounter; On 2016/10/06 08:47:10, haraken wrote: ...
4 years, 2 months ago (2016-10-06 09:34:52 UTC) #6
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/2393353003/20001
4 years, 2 months ago (2016-10-06 09:35:14 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-06 11:43:35 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 11:46:59 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/964d6ecc9c556e80c53140a2254e93c92deb98a2
Cr-Commit-Position: refs/heads/master@{#423501}

Powered by Google App Engine
This is Rietveld 408576698