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

Issue 1328013002: Add early out back to Node::updateDistribution(). (Closed)

Created:
5 years, 3 months ago by esprehn
Modified:
5 years, 3 months ago
Reviewers:
hayato, dglazkov, ojan
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add early out back to Node::updateDistribution(). It was walking the children of the root (usually the <head> and <body>) on every call even if nothing was dirty. This meant each call was 5 branches plus a trace macro, the macro often being more expensive than the no-op work. Lets instead abort early if nothing is dirty and skip the trace macro when possible to avoid polluting traces with trace overhead spam. BUG=527982 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201838

Patch Set 1 #

Patch Set 2 : do it right. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M Source/core/dom/Node.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 1 1 chunk +8 lines, -1 line 0 comments Download
M Source/core/editing/EditingTestBase.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1328013002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1328013002/1
5 years, 3 months ago (2015-09-04 17:57:56 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1328013002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1328013002/20001
5 years, 3 months ago (2015-09-04 18:27:11 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-04 20:07:35 UTC) #6
esprehn
5 years, 3 months ago (2015-09-05 00:10:09 UTC) #8
dglazkov
lgtm
5 years, 3 months ago (2015-09-05 01:08:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1328013002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1328013002/20001
5 years, 3 months ago (2015-09-05 01:12:06 UTC) #11
commit-bot: I haz the power
5 years, 3 months ago (2015-09-05 01:16:41 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201838

Powered by Google App Engine
This is Rietveld 408576698