|
Revert "The current growth strategy for growable arrays allocates a backing array of size 2 at (empty) creation and doubles the size whenever the capacity is insufficient while adding elements."
This reverts commit cec963f028198ec5871840491ba78b096ad0b819.
Fixes issue https://github.com/dart-lang/sdk/issues/30090, performance regression in GrowableList (severe for
dartdoc).
BUG=
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+126 lines, -124 lines) |
Patch |
 |
M |
runtime/lib/array_patch.dart
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/growable_array.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/growable_array.dart
|
View
|
|
7 chunks |
+27 lines, -27 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/stacktrace.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/class_finalizer.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/clustered_snapshot.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/code_descriptors.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/dart_api_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/debugger.cc
|
View
|
|
6 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/debugger_api_impl.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/exceptions.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/gc_sweeper.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/method_recognizer.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/mirrors_api_impl.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.h
|
View
|
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.cc
|
View
|
|
8 chunks |
+14 lines, -27 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object_test.cc
|
View
|
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/pages.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.cc
|
View
|
|
8 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/precompiler.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/profiler_test.cc
|
View
|
|
1 chunk |
+18 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/raw_object.h
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/raw_object.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/service.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/service_test.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 9 (3 generated)
|