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

Issue 10987042: Speed up fremontcut/dartdomgenerator (Closed)

Created:
8 years, 2 months ago by vsm
Modified:
8 years, 2 months ago
Reviewers:
Anton Muhin, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Speed up fremontcut/dartdomgenerator - Parse IDL in parallel - Support calling fremontcut from dartdomgenerator to avoid reading database This speeds up the whole go.sh by about 4x on my machine. Looks like the remaining bottleneck is in the emitter. Committed: https://code.google.com/p/dart/source/detail?r=13038

Patch Set 1 #

Patch Set 2 : PReserve old entrypoint #

Total comments: 14

Patch Set 3 : Add some robustness #

Patch Set 4 : One more fix #

Total comments: 10

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -43 lines) Patch
M lib/html/scripts/dartdomgenerator.py View 1 2 3 4 4 chunks +25 lines, -8 lines 0 comments Download
M lib/html/scripts/databasebuilder.py View 1 2 3 4 7 chunks +56 lines, -27 lines 0 comments Download
M lib/html/scripts/fremontcutbuilder.py View 3 chunks +4 lines, -4 lines 0 comments Download
M lib/html/scripts/go.sh View 1 chunk +1 line, -2 lines 0 comments Download
M lib/html/scripts/idlnode.py View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M lib/html/scripts/systembase.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
vsm
8 years, 2 months ago (2012-09-26 00:23:53 UTC) #1
Anton Muhin
That's really awesome! https://chromiumcodereview.appspot.com/10987042/diff/2001/lib/html/scripts/databasebuilder.py File lib/html/scripts/databasebuilder.py (right): https://chromiumcodereview.appspot.com/10987042/diff/2001/lib/html/scripts/databasebuilder.py#newcode76 lib/html/scripts/databasebuilder.py:76: idl_ast = idl_parser.parse(content, nit: unless it's ...
8 years, 2 months ago (2012-09-26 06:37:29 UTC) #2
vsm
thanks, PTAL https://chromiumcodereview.appspot.com/10987042/diff/2001/lib/html/scripts/databasebuilder.py File lib/html/scripts/databasebuilder.py (right): https://chromiumcodereview.appspot.com/10987042/diff/2001/lib/html/scripts/databasebuilder.py#newcode76 lib/html/scripts/databasebuilder.py:76: idl_ast = idl_parser.parse(content, On 2012/09/26 06:37:29, Anton ...
8 years, 2 months ago (2012-09-26 16:22:10 UTC) #3
vsm
BTW, to be clear, I haven't tested this on windows, but multiprocessing is supposed to ...
8 years, 2 months ago (2012-09-26 16:23:41 UTC) #4
Anton Muhin
https://chromiumcodereview.appspot.com/10987042/diff/2001/lib/html/scripts/databasebuilder.py File lib/html/scripts/databasebuilder.py (right): https://chromiumcodereview.appspot.com/10987042/diff/2001/lib/html/scripts/databasebuilder.py#newcode120 lib/html/scripts/databasebuilder.py:120: new_name = rename(idl_node.id) Weird. Might be worth splitting those ...
8 years, 2 months ago (2012-09-26 17:53:09 UTC) #5
Anton Muhin
https://chromiumcodereview.appspot.com/10987042/diff/2001/lib/html/scripts/databasebuilder.py File lib/html/scripts/databasebuilder.py (right): https://chromiumcodereview.appspot.com/10987042/diff/2001/lib/html/scripts/databasebuilder.py#newcode451 lib/html/scripts/databasebuilder.py:451: def _process_idl_file(self, idl_file, I'd rather make it a closure ...
8 years, 2 months ago (2012-09-26 17:57:26 UTC) #6
vsm
PTAL https://codereview.chromium.org/10987042/diff/8002/lib/html/scripts/dartdomgenerator.py File lib/html/scripts/dartdomgenerator.py (right): https://codereview.chromium.org/10987042/diff/8002/lib/html/scripts/dartdomgenerator.py#newcode182 lib/html/scripts/dartdomgenerator.py:182: GenerateFromDatabase(database, dart2js_output_dir, On 2012/09/26 17:53:09, Anton Muhin wrote: ...
8 years, 2 months ago (2012-09-28 16:17:25 UTC) #7
Anton Muhin
8 years, 2 months ago (2012-09-28 18:01:36 UTC) #8
STV!

That's really great to see speed up in this part of pipeline

Powered by Google App Engine
This is Rietveld 408576698