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

Issue 2588843002: DevTools: speed up closure dependency checking (Closed)

Created:
4 years ago by chenwilliam
Modified:
3 years, 11 months ago
Reviewers:
dgozman, pfeldman
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: speed up closure dependency checking Compiling frontend runs in ~13 seconds (including dependency check) instead of 22 seconds. Examples of the RegEx match: http://regexr.com/3etk5 The following CL needs to land before this CL lands: https://codereview.chromium.org/2623743002/ BUG=673445 Review-Url: https://codereview.chromium.org/2588843002 Cr-Commit-Position: refs/heads/master@{#442754} Committed: https://chromium.googlesource.com/chromium/src/+/2bc46a6dd144aa85e0aecd8f16631dc6bbdfa11e

Patch Set 1 #

Patch Set 2 : update compile_frontend #

Total comments: 6

Patch Set 3 : address CL feedback #

Patch Set 4 : nits #

Patch Set 5 : java #

Patch Set 6 : update BUILD.gn #

Total comments: 6

Patch Set 7 : address CL feedback #

Patch Set 8 : fix #

Patch Set 9 : remove todo comment #

Patch Set 10 : rebased on extract-extensions #

Patch Set 11 : fix #

Total comments: 8

Patch Set 12 : address CL feedback #

Patch Set 13 : re-insert comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -141 lines) Patch
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Runtime.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/README.md View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/scripts/build/modular_build.py View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/compile_frontend.py View 1 2 3 4 5 6 7 8 9 7 chunks +48 lines, -132 lines 0 comments Download
A third_party/WebKit/Source/devtools/scripts/dependency_preprocessor.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +95 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/special_case_namespaces.json View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
chenwilliam
This is a work in progress, but so far this approach looks promising as there's ...
4 years ago (2016-12-19 18:49:43 UTC) #3
chenwilliam
PTAL. I think the remaining steps are to rename UI Lazy and Component Lazy modules ...
4 years ago (2016-12-20 02:57:46 UTC) #6
dgozman
https://codereview.chromium.org/2588843002/diff/20001/third_party/WebKit/Source/devtools/scripts/closure/closure_runner/src/org/chromium/devtools/compiler/DevToolsCodingConvention.java File third_party/WebKit/Source/devtools/scripts/closure/closure_runner/src/org/chromium/devtools/compiler/DevToolsCodingConvention.java (left): https://codereview.chromium.org/2588843002/diff/20001/third_party/WebKit/Source/devtools/scripts/closure/closure_runner/src/org/chromium/devtools/compiler/DevToolsCodingConvention.java#oldcode14 third_party/WebKit/Source/devtools/scripts/closure/closure_runner/src/org/chromium/devtools/compiler/DevToolsCodingConvention.java:14: return name.length() > 1 && name.charAt(0) == '_' && ...
4 years ago (2016-12-20 07:02:18 UTC) #7
chenwilliam
PTAL. https://codereview.chromium.org/2588843002/diff/20001/third_party/WebKit/Source/devtools/scripts/closure/closure_runner/src/org/chromium/devtools/compiler/DevToolsCodingConvention.java File third_party/WebKit/Source/devtools/scripts/closure/closure_runner/src/org/chromium/devtools/compiler/DevToolsCodingConvention.java (left): https://codereview.chromium.org/2588843002/diff/20001/third_party/WebKit/Source/devtools/scripts/closure/closure_runner/src/org/chromium/devtools/compiler/DevToolsCodingConvention.java#oldcode14 third_party/WebKit/Source/devtools/scripts/closure/closure_runner/src/org/chromium/devtools/compiler/DevToolsCodingConvention.java:14: return name.length() > 1 && name.charAt(0) == '_' ...
4 years ago (2016-12-20 20:23:35 UTC) #8
chenwilliam
PTAL. I've trimmed down the closure_runner java code to just what we need.
4 years ago (2016-12-22 18:27:15 UTC) #10
dgozman
https://codereview.chromium.org/2588843002/diff/120001/third_party/WebKit/Source/devtools/front_end/gonzales/module.json File third_party/WebKit/Source/devtools/front_end/gonzales/module.json (right): https://codereview.chromium.org/2588843002/diff/120001/third_party/WebKit/Source/devtools/front_end/gonzales/module.json#newcode6 third_party/WebKit/Source/devtools/front_end/gonzales/module.json:6: "../common/TextRange.js", TextRange is a part of formatter_worker, which is ...
3 years, 12 months ago (2016-12-27 18:07:36 UTC) #11
chenwilliam
PTAL. https://codereview.chromium.org/2588843002/diff/120001/third_party/WebKit/Source/devtools/front_end/gonzales/module.json File third_party/WebKit/Source/devtools/front_end/gonzales/module.json (right): https://codereview.chromium.org/2588843002/diff/120001/third_party/WebKit/Source/devtools/front_end/gonzales/module.json#newcode6 third_party/WebKit/Source/devtools/front_end/gonzales/module.json:6: "../common/TextRange.js", On 2016/12/27 18:07:36, dgozman wrote: > TextRange ...
3 years, 11 months ago (2016-12-27 23:49:15 UTC) #12
dgozman
lgtm https://codereview.chromium.org/2588843002/diff/220001/third_party/WebKit/Source/devtools/scripts/compile_frontend.py File third_party/WebKit/Source/devtools/scripts/compile_frontend.py (right): https://codereview.chromium.org/2588843002/diff/220001/third_party/WebKit/Source/devtools/scripts/compile_frontend.py#newcode239 third_party/WebKit/Source/devtools/scripts/compile_frontend.py:239: if descriptors.application[module_name].get('type', None) == 'worker': FYI: this is ...
3 years, 11 months ago (2017-01-10 21:47:35 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/2588843002/260001
3 years, 11 months ago (2017-01-10 22:37:20 UTC) #18
chenwilliam
https://codereview.chromium.org/2588843002/diff/220001/third_party/WebKit/Source/devtools/scripts/compile_frontend.py File third_party/WebKit/Source/devtools/scripts/compile_frontend.py (right): https://codereview.chromium.org/2588843002/diff/220001/third_party/WebKit/Source/devtools/scripts/compile_frontend.py#newcode239 third_party/WebKit/Source/devtools/scripts/compile_frontend.py:239: if descriptors.application[module_name].get('type', None) == 'worker': On 2017/01/10 21:47:35, dgozman ...
3 years, 11 months ago (2017-01-10 23:08:56 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 01:22:04 UTC) #22
Message was sent while issue was closed.
Committed patchset #13 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/2bc46a6dd144aa85e0aecd8f1663...

Powered by Google App Engine
This is Rietveld 408576698