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

Issue 2498783002: DevTools: [Sources] Improve editor load time by optimizing setMimeType (Closed)

Created:
4 years, 1 month ago by einbinder
Modified:
4 years, 1 month ago
Reviewers:
lushnikov
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: [Sources] Improve editor load time by optimizing setMimeType Now setMimeType is called only once per mimeType. It runs synchronously if it can to avoid re-highlighting the document. BUG=664324 Committed: https://crrev.com/1f11bb313b15f3805841fa940a9543232417fa78 Cr-Commit-Position: refs/heads/master@{#432744}

Patch Set 1 #

Patch Set 2 : Save the right mimetype #

Total comments: 9

Patch Set 3 : Replace Promise with callback #

Patch Set 4 : Remove unneeded if #

Total comments: 3

Patch Set 5 : Split _loadMimeTypeModes into two #

Total comments: 6

Patch Set 6 : installMimeTypeModes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -30 lines) Patch
M third_party/WebKit/LayoutTests/inspector/editor/php-highlighter.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/externs.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js View 1 2 3 1 chunk +3 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js View 1 2 3 4 5 6 chunks +50 lines, -13 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
einbinder
ptal https://codereview.chromium.org/2498783002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2498783002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode628 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:628: if (this._mimeType === mimeType) We have to do ...
4 years, 1 month ago (2016-11-12 02:59:24 UTC) #2
lushnikov
https://codereview.chromium.org/2498783002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2498783002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode268 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:268: * @return {?Promise} Let's keep this "!" https://codereview.chromium.org/2498783002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode613 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:613: ...
4 years, 1 month ago (2016-11-14 19:32:56 UTC) #7
einbinder
ptal https://codereview.chromium.org/2498783002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2498783002/diff/20001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode613 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:613: * @return {!Promise} On 2016/11/14 at 19:32:55, lushnikov ...
4 years, 1 month ago (2016-11-15 02:33:15 UTC) #8
lushnikov
https://codereview.chromium.org/2498783002/diff/60001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2498783002/diff/60001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode270 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:270: static _loadMimeTypeModes(mimeType, callback) { let's rather split this into ...
4 years, 1 month ago (2016-11-16 05:23:36 UTC) #9
einbinder
https://codereview.chromium.org/2498783002/diff/60001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2498783002/diff/60001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode270 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:270: static _loadMimeTypeModes(mimeType, callback) { On 2016/11/16 at 05:23:35, lushnikov ...
4 years, 1 month ago (2016-11-16 23:17:54 UTC) #10
lushnikov
thanks, lgtm https://codereview.chromium.org/2498783002/diff/80001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2498783002/diff/80001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode270 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:270: static _gatherModesForMimeType(mimeType) { _collectUninstalledModes https://codereview.chromium.org/2498783002/diff/80001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode299 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:299: static ...
4 years, 1 month ago (2016-11-17 00:00:24 UTC) #11
einbinder
https://codereview.chromium.org/2498783002/diff/80001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2498783002/diff/80001/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js#newcode270 third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js:270: static _gatherModesForMimeType(mimeType) { On 2016/11/17 at 00:00:24, lushnikov wrote: ...
4 years, 1 month ago (2016-11-17 00:57:03 UTC) #12
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/2498783002/100001
4 years, 1 month ago (2016-11-17 00:57:55 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_TIMED_OUT, no build URL) android_clang_dbg_recipe on ...
4 years, 1 month ago (2016-11-17 03:00:51 UTC) #17
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/2498783002/100001
4 years, 1 month ago (2016-11-17 03:26:33 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-17 04:45:20 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 04:48:08 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1f11bb313b15f3805841fa940a9543232417fa78
Cr-Commit-Position: refs/heads/master@{#432744}

Powered by Google App Engine
This is Rietveld 408576698