|
Shrink AOT snapshot size and memory usage.
- Conditionally remove fields of Code, Function and ICData that are not used in the AOT runtime.
- Don't include RawClosureData.context_scope_ in AOT snapshots.
- Remove parameter names not needed for method resolution.
- Remove parameter types not needed for function type tests.
- Deduplicate parameter name and parameter type lists.
- Shrink and share the initial MegamorphicCache table.
Flutter gallery (IsolateSnapshotReader event)
snapshot size 2731129 -> 2199999 (-19.4%)
initial heap 7899568 -> 5433176 (-31.2%)
R=fschneider@google.com
Committed: https://github.com/dart-lang/sdk/commit/47cc06ae66aa6788d795e0d3af6517aaa8f91084
Total comments: 7
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+457 lines, -112 lines) |
Patch |
|
M |
runtime/observatory/lib/src/app/notification.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/observatory/lib/src/elements/code_view.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/observatory/lib/src/elements/function_view.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+23 lines, -12 lines |
0 comments
|
Download
|
|
M |
runtime/observatory/lib/src/elements/script_inset.dart
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/observatory/lib/src/models/objects/notification.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/platform/globals.h
|
View
|
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/clustered_snapshot.cc
|
View
|
1
2
3
4
5
6
7
|
14 chunks |
+51 lines, -25 lines |
0 comments
|
Download
|
|
M |
runtime/vm/flag_list.h
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/gc_marker.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object.h
|
View
|
1
2
3
4
5
6
7
|
14 chunks |
+134 lines, -4 lines |
2 comments
|
Download
|
|
M |
runtime/vm/object.cc
|
View
|
1
2
3
4
5
6
7
|
21 chunks |
+106 lines, -8 lines |
0 comments
|
Download
|
|
M |
runtime/vm/precompiler.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/precompiler.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+73 lines, -26 lines |
0 comments
|
Download
|
|
M |
runtime/vm/raw_object.h
|
View
|
1
2
3
|
6 chunks |
+39 lines, -27 lines |
0 comments
|
Download
|
|
M |
runtime/vm/raw_object.cc
|
View
|
1
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/raw_object_snapshot.cc
|
View
|
1
|
4 chunks |
+6 lines, -2 lines |
2 comments
|
Download
|
Total messages: 13 (7 generated)
|