Files
sdk/pkg/compiler/lib/src
Florian Loitsch 968fcc5c62 Speed 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

Review-Url: https://codereview.chromium.org/2602863002 .
2016-12-29 14:40:44 +01:00
..
2016-08-08 14:41:50 -07:00
2016-12-29 14:40:44 +01:00
2016-12-09 10:59:50 +01:00
2016-12-28 14:43:38 -08:00
2016-08-11 19:05:59 -07:00
2016-12-21 10:22:06 +01:00
2016-12-28 12:23:58 -08:00
2016-08-08 14:41:50 -07:00
2016-04-07 10:00:53 -07:00
2016-12-12 10:48:18 +01:00
2016-04-07 10:00:53 -07:00
2016-12-14 17:24:55 -08:00
2016-12-21 10:22:06 +01:00
2016-08-08 14:41:50 -07:00
2016-04-07 10:00:53 -07:00
2016-08-11 19:05:59 -07:00

Dart2JS is the Dart-to-JavaScript compiler for Dart. This compiler
will provide high-quality translation from Dart to JavaScript.

Some areas that will explored in this project are:

   * high-performance extensible scanner and parser
   * concrete type inferencing
   * fancy language tool support
   * programming environment integration
   * SSA-based intermediate representation
   * adaptive compilation on the client