-
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] Remove the [ImportedElement] class
When running analyzer on flutter and it's transitive sources, it consumes around 480 MB of memory. The [ImportedElement] class is an intermediatey wrapper around an [Element] and a boolean that is mostly false. This CL removes the [ImportedElement] class and stores the boolean side-information alongside the element in [PrefixScope] and [PrefixScopeLookupResult]. This saves around 15.5 MB of memory. TEST=ci Change-Id: I94692a9709c70decd90c604bbdc85f5b308b3006 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256029 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>
- Loading branch information
1 parent
bba453b
commit 4193bb3
Showing
2 changed files
with
73 additions
and
71 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