DescriptionSpeed up _wouldBeTooManyUsers.
On my current dart-program, this reduced compilation time by a third.
$ # before applying the patch:
$ time sdk/bin/dart2js --packages=sdk/.packages --out=/tmp/foo.js /tmp/bug2.dart
Dart file (/tmp/bug2.dart) compiled to JavaScript: /tmp/foo.js
real 0m29.859s
user 0m33.931s
sys 0m1.530s
$ time sdk/bin/dart2js --packages=sdk/.packages --out=/tmp/foo.js /tmp/bug2.dart
Dart file (/tmp/bug2.dart) compiled to JavaScript: /tmp/foo.js
real 0m30.062s
user 0m34.012s
sys 0m1.558s
$ # ----------------- apply the patch.
$ git stash pop
$ time sdk/bin/dart2js --packages=sdk/.packages --out=/tmp/foo.js /tmp/bug2.dart
Dart file (/tmp/bug2.dart) compiled to JavaScript: /tmp/foo.js
real 0m20.782s
user 0m24.540s
sys 0m1.750s
$ time sdk/bin/dart2js --packages=sdk/.packages --out=/tmp/foo.js /tmp/bug2.dart
Dart file (/tmp/bug2.dart) compiled to JavaScript: /tmp/foo.js
real 0m21.042s
user 0m24.495s
sys 0m2.173s
BUG=
R=sigmund@google.com
Committed: https://github.com/dart-lang/sdk/commit/968fcc5c625a1af8b9b061b4fb150772eb92f4fa
Patch Set 1 #Patch Set 2 : Remove dead code. #Messages
Total messages: 5 (2 generated)
|