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

Issue 2777963002: VM [KERNEL] Fix performance issue in KernelReader (Closed)

Created:
3 years, 9 months ago by Dmitry Olshansky
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM [KERNEL] Fix performance issue in KernelReader Original code is constructing Class fields and functions incrementally going through poorly scalable AddFunction and AddField reallocating the whole array on each call. Instead accumulate things in GrowableArrays and insert in one go. BUG= https://github.com/dart-lang/sdk/issues/28312 R=vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/a8bc1de524f778c940c0171aaaea980f78819705

Patch Set 1 #

Total comments: 2

Patch Set 2 : VM [KERNEL] Fix performance issue in KernelReader #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -8 lines) Patch
M runtime/vm/kernel_reader.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/kernel_reader.cc View 1 10 chunks +27 lines, -7 lines 1 comment Download

Messages

Total messages: 9 (4 generated)
Dmitry Olshansky
3 years, 9 months ago (2017-03-27 16:23:46 UTC) #2
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2777963002/diff/1/runtime/vm/kernel_reader.cc File runtime/vm/kernel_reader.cc (right): https://codereview.chromium.org/2777963002/diff/1/runtime/vm/kernel_reader.cc#newcode183 runtime/vm/kernel_reader.cc:183: GrowableArray<const dart::Function*> functions; Maybe make functions_ and fields_ members ...
3 years, 9 months ago (2017-03-27 17:31:55 UTC) #5
Dmitry Olshansky
https://codereview.chromium.org/2777963002/diff/1/runtime/vm/kernel_reader.cc File runtime/vm/kernel_reader.cc (right): https://codereview.chromium.org/2777963002/diff/1/runtime/vm/kernel_reader.cc#newcode183 runtime/vm/kernel_reader.cc:183: GrowableArray<const dart::Function*> functions; On 2017/03/27 17:31:55, Vyacheslav Egorov (Google) ...
3 years, 9 months ago (2017-03-27 18:08:47 UTC) #6
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/2777963002/diff/20001/runtime/vm/kernel_reader.cc File runtime/vm/kernel_reader.cc (right): https://codereview.chromium.org/2777963002/diff/20001/runtime/vm/kernel_reader.cc#newcode210 runtime/vm/kernel_reader.cc:210: ReadProcedure(library, toplevel_class, kernel_procedure, NULL); NULL is a default ...
3 years, 9 months ago (2017-03-27 18:19:09 UTC) #7
Dmitry Olshansky
3 years, 9 months ago (2017-03-27 18:24:27 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
a8bc1de524f778c940c0171aaaea980f78819705 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698