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

Issue 344673002: Load instances of the same transformer from the same isolate. (Closed)

Created:
6 years, 6 months ago by nweiz
Modified:
6 years, 6 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Load instances of the same transformer from the same isolate. Previously, two transformers from the same library but with different configuration was considered completely different from one another. This was not only inefficient but incorrect: it meant that a transformer could be loaded with the wrong code. R=rnystrom@google.com BUG=19261 Committed: https://code.google.com/p/dart/source/detail?r=37511

Patch Set 1 #

Patch Set 2 : fix a merge bug #

Total comments: 32

Patch Set 3 : code review #

Patch Set 4 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+611 lines, -443 lines) Patch
M sdk/lib/_internal/pub/lib/src/barback.dart View 2 chunks +0 lines, -198 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/excluding_aggregate_transformer.dart View 3 chunks +15 lines, -15 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/excluding_transformer.dart View 3 chunks +17 lines, -15 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/foreign_transformer.dart View 4 chunks +7 lines, -7 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart View 1 2 3 5 chunks +92 lines, -82 lines 0 comments Download
D sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart View 1 chunk +0 lines, -88 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart View 1 2 1 chunk +128 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback/transformer_id.dart View 1 chunk +100 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback/transformer_isolate.dart View 1 2 1 chunk +117 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/transformers_needed_by_transformers.dart View 1 7 chunks +13 lines, -7 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/pubspec.dart View 1 2 3 4 chunks +15 lines, -14 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M sdk/lib/_internal/pub/test/pubspec_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/serve/utils.dart View 3 chunks +12 lines, -2 lines 0 comments Download
A sdk/lib/_internal/pub/test/transformer/loads_different_configurations_from_the_same_isolate_test.dart View 1 2 1 chunk +90 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
nweiz
6 years, 6 months ago (2014-06-18 20:15:04 UTC) #1
Bob Nystrom
Is this an optimization? What kind of performance improvement do you see? What should we ...
6 years, 6 months ago (2014-06-18 23:12:05 UTC) #2
nweiz
This should improve the load time of packages that use the same transformer with different ...
6 years, 6 months ago (2014-06-18 23:50:31 UTC) #3
Bob Nystrom
One nit, but LGTM! https://codereview.chromium.org/344673002/diff/20001/sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart File sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart (right): https://codereview.chromium.org/344673002/diff/20001/sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart#newcode91 sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart:91: // TODO(nweiz): remove the [newFuture] ...
6 years, 6 months ago (2014-06-19 16:49:42 UTC) #4
nweiz
Committed patchset #4 manually as r37511 (presubmit successful).
6 years, 6 months ago (2014-06-19 19:34:45 UTC) #5
nweiz
6 years, 6 months ago (2014-06-19 19:36:43 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/344673002/diff/20001/sdk/lib/_internal/pub/li...
File sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart (right):

https://codereview.chromium.org/344673002/diff/20001/sdk/lib/_internal/pub/li...
sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart:91: //
TODO(nweiz): remove the [newFuture] here when issue 17305 is fixed. If
On 2014/06/19 16:49:42, Bob Nystrom wrote:
> On 2014/06/18 23:50:30, nweiz wrote:
> > On 2014/06/18 23:12:03, Bob Nystrom wrote:
> > > Long lines.
> > 
> > Done.
> 
> Still looks long to me. Did you upload it?

Oops, done for real.

Powered by Google App Engine
This is Rietveld 408576698