Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1416)

Issue 2968003004: Revert "The current growth strategy for growable arrays allocates a backing array of size 2 at (emp… (Closed)

Created:
3 years, 5 months ago by jcollins
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

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=

Patch Set 1 #

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

Messages

Total messages: 9 (3 generated)
jcollins
It seems that the change to growable list expansion introduced a performance regression that dartdoc ...
3 years, 5 months ago (2017-07-06 15:31:48 UTC) #3
erikcorry
Can you share a command line that we can use to repro the regression?
3 years, 5 months ago (2017-07-06 19:22:11 UTC) #5
erikcorry
Ah, sorry, you did that on the bug!
3 years, 5 months ago (2017-07-06 19:22:46 UTC) #6
erikcorry
lgtm
3 years, 5 months ago (2017-07-06 19:25:45 UTC) #7
Aske Simon Christensen
lgtm
3 years, 5 months ago (2017-07-07 07:49:32 UTC) #8
erikcorry
3 years, 5 months ago (2017-07-07 12:20:03 UTC) #9
Please don't commit this.  We have a fix in
https://codereview.chromium.org/2971303002/
 instead

Powered by Google App Engine
This is Rietveld 408576698