| commit | ae37ff098a2bc3dd16f3e7d528cafff678013517 | [log] [tgz] |
|---|---|---|
| author | Vyacheslav Egorov <vegorov@google.com> | Mon Mar 08 14:21:01 2021 +0000 |
| committer | commit-bot@chromium.org <commit-bot@chromium.org> | Mon Mar 08 14:21:01 2021 +0000 |
| tree | 3fbc9f29f1db03cdc0eb4d2a6a5dd2525a78028f | |
| parent | 01b0947a6d54c878a809236a8890c162b840c8f0 [diff] |
[vm] Compact serialization for canonical sets This CL changes how canonical sets for some specific types are written into the root snapshot: instead of writing canonical set as a separate object we reorder objects within a canonical cluster in such a way that the order matches order of elements in the backing store of a canonical set and then we write canonical set layout out using differential encoding (essentially writing gaps between elements instead of writing absolute indices). This significantly reduces the overhead of having canonical sets in the snapshot while maintaining fast deserialisation: for example on build microbenchmark this brings regression in the snapshot size from 4% to .3%. On sizeopt benchmarks: flutter_gallery_app_so_gzip_size -1.5% flutter_gallery_app_so_size -4.7% flutter_gallery_total_heap_size -16.2% TEST=ci Change-Id: I2be7fd073668e9b52098e2acda9f11d128cfda95 Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-linux-debug-x64-try,pkg-linux-release-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185381 Commit-Queue: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Siva Annamalai <asiva@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.