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

Issue 1080393006: Mirrors memory usage tweaks. (Closed)

Created:
5 years, 8 months ago by rmacnak
Modified:
5 years, 8 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Mirrors memory usage tweaks. - Don't build and cache vestigial members/constructors maps. - Avoid creating multiple LibraryMirrors for the same library. - Store infrequently used method flags as a bitfield. - Don't cache MethodMirror source. mirrors_reader_test final heap size: 10.8 -> 8.9 MB (-17.5%) mirrors_reader_test time: 1.55 -> 1.33 seconds (-14.2%) R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=45352

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -86 lines) Patch
M runtime/lib/mirrors.h View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M runtime/lib/mirrors.cc View 1 2 3 4 5 3 chunks +41 lines, -13 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 3 8 chunks +60 lines, -72 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
rmacnak
5 years, 8 months ago (2015-04-21 22:27:24 UTC) #2
siva
LGTM with one comment. https://codereview.chromium.org/1080393006/diff/1/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/1080393006/diff/1/runtime/lib/mirrors.cc#newcode255 runtime/lib/mirrors.cc:255: // These offsets much be ...
5 years, 8 months ago (2015-04-22 00:00:47 UTC) #3
rmacnak
https://codereview.chromium.org/1080393006/diff/1/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/1080393006/diff/1/runtime/lib/mirrors.cc#newcode255 runtime/lib/mirrors.cc:255: // These offsets much be kept in sync with ...
5 years, 8 months ago (2015-04-22 17:09:02 UTC) #4
siva
still LGTM. https://codereview.chromium.org/1080393006/diff/100001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/1080393006/diff/100001/runtime/lib/mirrors.cc#newcode566 runtime/lib/mirrors.cc:566: } Not sure if linker optimizes out ...
5 years, 8 months ago (2015-04-22 17:32:55 UTC) #5
rmacnak
https://codereview.chromium.org/1080393006/diff/100001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/1080393006/diff/100001/runtime/lib/mirrors.cc#newcode566 runtime/lib/mirrors.cc:566: } On 2015/04/22 17:32:55, siva wrote: > Not sure ...
5 years, 8 months ago (2015-04-22 17:51:41 UTC) #6
rmacnak
5 years, 8 months ago (2015-04-22 17:51:57 UTC) #7
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as 45352 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698