Chromium Code Reviews
DescriptionFix all for-in warnings in dart2js
NodeList mixes in IterableMixin<Node>. This makes the object bigger,
costing ~3% extra size for the Dart AST. (10MB out of 350MB)
One idea would be to revert this change and make all the for-in sites use
the .nodes member.
Link<T> now implements Iterable<T>, with missing methods added.
IterableMixin could not be used since Link has a const constructor.
I would like to see Link<T> replaced with fixed length lists or
unmodifiable lists.
A couple of other classes were modified to return an Iterable.
R=sigmund@google.com
Committed: https://github.com/dart-lang/sdk/commit/56d0f6aeeec939af69d860a50a0fafdd74a838d6
Patch Set 1 : #
Total comments: 4
Patch Set 2 : #
Messages
Total messages: 9 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||