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

Issue 590393005: Pass a package root to spawned isolates in pub. (Closed)

Created:
6 years, 2 months ago by nweiz
Modified:
6 years, 2 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org, dgrove, iposva, Anders Johnsen
Visibility:
Public.

Description

Pass a package root to spawned isolates in pub. This allows pub to get rid of the RewriteImportTransformer. This reduces the runtime of "pub run polymer:new_element --help" by about 270ms. R=rnystrom@google.com BUG=20859 Committed: https://code.google.com/p/dart/source/detail?r=40614

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -312 lines) Patch
M sdk/lib/_internal/pub/asset/dart/transformer_isolate.dart View 2 chunks +7 lines, -5 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart View 3 chunks +4 lines, -17 lines 0 comments Download
D sdk/lib/_internal/pub/lib/src/barback/rewrite_import_transformer.dart View 1 chunk +0 lines, -40 lines 1 comment Download
M sdk/lib/_internal/pub/lib/src/barback/transformer_cache.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/transformer_isolate.dart View 4 chunks +4 lines, -8 lines 2 comments Download
M sdk/lib/_internal/pub/lib/src/barback/transformers_needed_by_transformers.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/dart.dart View 4 chunks +16 lines, -9 lines 2 comments Download
M sdk/lib/_internal/pub/lib/src/package_graph.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/license.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/name.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub_generated/asset/dart/transformer_isolate.dart View 2 chunks +7 lines, -5 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/barback/load_all_transformers.dart View 2 chunks +118 lines, -135 lines 0 comments Download
D sdk/lib/_internal/pub_generated/lib/src/barback/rewrite_import_transformer.dart View 1 chunk +0 lines, -26 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/barback/transformer_isolate.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/dart.dart View 3 chunks +81 lines, -56 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
6 years, 2 months ago (2014-09-23 20:59:33 UTC) #1
Bob Nystrom
LGTM! > This reduces the runtime of "pub run polymer:new_element --help" by about 270ms. From ...
6 years, 2 months ago (2014-09-23 21:56:12 UTC) #2
nweiz
Committed patchset #1 (id:1) manually as 40614 (presubmit successful).
6 years, 2 months ago (2014-09-23 23:22:40 UTC) #3
nweiz
6 years, 2 months ago (2014-09-23 23:23:58 UTC) #4
Message was sent while issue was closed.
> From what?

About 2.09s to 1.82s.

https://codereview.chromium.org/590393005/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/barback/transformer_isolate.dart (right):

https://codereview.chromium.org/590393005/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/barback/transformer_isolate.dart:72:
"r'package:\$pub/transformer_isolate.dart';");
On 2014/09/23 21:56:11, Bob Nystrom wrote:
> Will this fit on one line now?

Done.

https://codereview.chromium.org/590393005/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/dart.dart (right):

https://codereview.chromium.org/590393005/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/dart.dart:186:
snapshotArgs..addAll(['--snapshot=$snapshot', dartPath]));
On 2014/09/23 21:56:11, Bob Nystrom wrote:
> Using a cascade here seems weird. Why not just do this after the if
> (packageRoot... line?

Done.

Powered by Google App Engine
This is Rietveld 408576698