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

Issue 2901093002: VM: Fix snapshoting slow-down caused by 99c6a18a1bc2a4f13d8dd027a597fdca0f2d6e0c. (Closed)

Created:
3 years, 7 months ago by Vyacheslav Egorov (Google)
Modified:
3 years, 7 months ago
Reviewers:
rmacnak, siva
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Fix snapshoting slow-down caused by 99c6a18a1bc2a4f13d8dd027a597fdca0f2d6e0c. Only reload packages map when we are actually doing the isolate reload. Snapshotting creates and destroys and loader object every time it loads a dart file - which means kInitLoader is on the hot path and we should avoid rereading packages map. R=asiva@google.com, rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/13f5616ef6012d01a2fa1c008241ea95c05bb57f

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M runtime/bin/loader.cc View 2 chunks +3 lines, -1 line 0 comments Download
M runtime/bin/vmservice/loader.dart View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/include/dart_tools_api.h View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 2 chunks +13 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
Vyacheslav Egorov (Google)
3 years, 7 months ago (2017-05-23 18:39:00 UTC) #1
siva
LGTM to fix the regression. We seem to have a bigger issue in that we ...
3 years, 7 months ago (2017-05-23 18:48:38 UTC) #3
Vyacheslav Egorov (Google)
Thanks for the quick review. I also find it strange that we reinitialize loader so ...
3 years, 7 months ago (2017-05-23 20:00:48 UTC) #4
Vyacheslav Egorov (Google)
3 years, 7 months ago (2017-05-23 20:01:49 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
13f5616ef6012d01a2fa1c008241ea95c05bb57f.

Powered by Google App Engine
This is Rietveld 408576698