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

Issue 2820253002: DevTools: avoid slowdown from unnecessary DOM, style mutations on CodeMirrorTextEditor (Closed)

Created:
3 years, 8 months ago by luoe
Modified:
3 years, 8 months ago
Reviewers:
dgozman, lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: avoid slowdown from unnecessary DOM, style mutations on CodeMirrorTextEditor Logging console messages that generate decorations (wavy underline under errors) will cause a slowdown. UISourceCodeFrame's _updateDecorations() can remove and re-add the same decoration or CSS class from a line, even if it did not change. This CL avoids removing a decoration/class if the new one is the same. BUG=651610 Review-Url: https://codereview.chromium.org/2820253002 Cr-Commit-Position: refs/heads/master@{#467394} Committed: https://chromium.googlesource.com/chromium/src/+/f677ae05d0b2e54b4876b3921a0dc1b9d66b4a21

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix root cause not symptom #

Patch Set 3 : rebase and update #

Total comments: 4

Patch Set 4 : ac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -6 lines) Patch
M third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js View 1 2 3 4 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
luoe
Ptal
3 years, 8 months ago (2017-04-18 01:15:14 UTC) #3
lushnikov
https://codereview.chromium.org/2820253002/diff/1/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js (right): https://codereview.chromium.org/2820253002/diff/1/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js#newcode631 third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js:631: for (var i = 0; i < this._messages.length; ++i) ...
3 years, 8 months ago (2017-04-19 20:41:28 UTC) #9
luoe
I felt that adding a throttler was only addressing the symptom, not the real issue. ...
3 years, 8 months ago (2017-04-20 23:43:59 UTC) #11
luoe
Gentle ptal @dgozman
3 years, 8 months ago (2017-04-25 23:41:07 UTC) #12
dgozman
https://codereview.chromium.org/2820253002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js (right): https://codereview.chromium.org/2820253002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js#newcode592 third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js:592: if (columnChanged) { if (this._decorationStartColumn === startColumn) return; https://codereview.chromium.org/2820253002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js#newcode687 ...
3 years, 8 months ago (2017-04-26 00:03:55 UTC) #13
luoe
Ptal https://codereview.chromium.org/2820253002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js (right): https://codereview.chromium.org/2820253002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js#newcode592 third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js:592: if (columnChanged) { On 2017/04/26 00:03:55, dgozman wrote: ...
3 years, 8 months ago (2017-04-26 00:12:38 UTC) #14
dgozman
lgtm
3 years, 8 months ago (2017-04-26 16:47:14 UTC) #15
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/2820253002/60001
3 years, 8 months ago (2017-04-26 17:04:35 UTC) #17
luoe
On 2017/04/26 17:04:35, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
3 years, 8 months ago (2017-04-26 17:05:25 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 18:48:49 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f677ae05d0b2e54b4876b3921a0d...

Powered by Google App Engine
This is Rietveld 408576698