You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_StringTable had 2 Uint32Lists for offsets and lengths in order to be
able to read strings lazily.
As offsets[x+1] = offsets[x]+length[x] we don't really need the lengths
one though.
Analyzing (82 contexts in) flutter/flutter (without a cache) this
reduces memory load by something like 22-27 MB (see below).
Note that it doesn't actually reduce the heap capacity or the process
RSS in this instance though.
Statistics on 5 runs of each:
```
_Uint32List (dart:typed_data) (bytes):
Difference at 95.0% confidence
-23842069.33 +/- 986160.19
-5.15% +/- 0.21%
heapUsage:
Difference at 95.0% confidence
-28619536.00 +/- 8755493.42
-0.79% +/- 0.24%
```
Change-Id: Ia71bac2233fcef2d9e930c8b78f1aee58e1af78f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320801
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
0 commit comments