-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters