commit | bdb782ba8fea7f7fd140ab0e57c598c354b3a550 | [log] [tgz] |
---|---|---|
author | Nate Biggs <natebiggs@google.com> | Fri Nov 18 21:40:38 2022 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 18 21:40:38 2022 +0000 |
tree | 992b977b72f8d51325d53f170fcac7c68d2b9775 | |
parent | b8d85b7ad36fe5f6dc7a7dd808b15fa97f74e083 [diff] |
[dart2js] Add mmap-based read to dart2js for linux systems. Based on Martin Kustermann and Slava Egorov's versions of memory mapped views. This feature is disabled by default and even if the flag is enabled, it will fall back to the current strategy if the platform is not Linux or the new strategy fails. Phase 1 stats from 50 runs: ---Before--- Max memory: 8786.766 Median memory: 8116.242 Average memory: 8327.404081632654 ---After---= Max memory: 7805.691 Median memory: 7137.203 Average memory: 7305.301122448978 Phase 2 stats from 50 runs: ---Before--- Max memory: 9273.359 Median memory: 8742.133 Average memory: 8868.929124999999 ---After--- Max memory: 9409.672 Median memory: 7500.148 Average memory: 7650.154000000001 Phase 3b stats from 50 runs: ---Before--- Max memory: 8979.367 Median memory: 8705.215 Average memory: 8703.982755102037 ---After--- Max memory: 7809.898 Median memory: 7455.609 Average memory: 7449.96102040816 Change-Id: I73d73cfb26218399367c72c886f247836b89925c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/269640 Commit-Queue: Nate Biggs <natebiggs@google.com> Reviewed-by: Sigmund Cherem <sigmund@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.