[dart2js] Add deferred read/write to closed world and global analysis serialization. Results after this CL: Without the --deferred-serialization flag the linker phase finishes with ~10.2GB in ~120s. With the --deferred-serialization flag the linker phase finishes with ~8.4GB in ~118s. All other phases have negligible changes. This is a ~17.6% reduction in memory usage and a small improvement in runtime. Summary of this change: With this change we target the new Deferrable concept to places that are triggering Kernel AST loads. By deferring the deserialization of these high-level data objects, we avoid the cascading deserialization of many other objects including much of the Kernel AST. There are still a few locations that load the bodies of some functions. Some are slightly harder to defer for various reasons but represent a small number of function bodies. This is a first pass and further improvements can probably be achieved with similar changes. Change-Id: I7449f4222669a7ad8af0a6549d30117133aed03a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247281 Reviewed-by: Joshua Litt <joshualitt@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.