| commit | 2bbf99351e0274643b8ab0c14904efbb650ded8b | [log] [tgz] |
|---|---|---|
| author | Jens Johansen <jensj@google.com> | Thu Sep 07 07:11:42 2023 +0000 |
| committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 07 07:11:42 2023 +0000 |
| tree | 54e8e84eeaa39b6cc08780df8ee5870e694bc860 | |
| parent | 36d66768331bce63945616107a2b5aef3d8bc541 [diff] |
[analyzer] Less duplicated line starts data with multiple contexts When having multiple contexts we have duplicates of some things. For instance line starts data. This CL deduplicates some of it, and makes use of `Uint16List` and `Uint32List` as appropriate (some where regular `List<int>`s before), reducing the heap usage for analyzing `flutter/flutter` (80+ contexts) when analyzing with an empty cache with about 165 MB. Details: ``` _GrowableList (dart:core) (bytes): Difference at 95.0% confidence -451040.00 +/- 0.00 -0.79% +/- 0.00% _Uint16List (dart:typed_data) (bytes): Difference at 95.0% confidence 6558032.00 +/- 0.00 696.69% +/- 0.00% _List (dart:core) (bytes): Difference at 95.0% confidence -70840960.00 +/- 231371.19 -9.58% +/- 0.03% _Uint32List (dart:typed_data) (bytes): Difference at 95.0% confidence -103560448.00 +/- 2829564.24 -23.56% +/- 0.64% heapUsage: Difference at 95.0% confidence -173020528.00 +/- 7787712.50 -4.78% +/- 0.21% ``` Change-Id: I49e23dde14a2faa7c8af94515b0ad1c669867c78 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324501 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@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.