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

Issue 19188004: Make the ClassMirrors created through reflectClass() find their owners (libraries) lazily. (Closed)

Created:
7 years, 5 months ago by rmacnak
Modified:
7 years, 5 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make the ClassMirrors created through reflectClass() find their owners (libraries) lazily. Remove an unused parameter that was threaded through a number of mirror creation functions. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=25193

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -27 lines) Patch
M runtime/lib/mirrors.cc View 1 2 3 4 5 10 chunks +20 lines, -26 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rmacnak
Will help with improving reflectClass() performance.
7 years, 5 months ago (2013-07-16 00:55:20 UTC) #1
rmacnak
Should improve performance of heavy users of reflectClass(), provided they do not also use classMirror.owner ...
7 years, 5 months ago (2013-07-16 17:17:52 UTC) #2
rmacnak
Adding Ivan.
7 years, 5 months ago (2013-07-16 17:23:40 UTC) #3
siva
This change does make a significant improvement for reflectClass (before 1150500.0 us after 315714.2 us) ...
7 years, 5 months ago (2013-07-16 21:06:45 UTC) #4
rmacnak
Base: 133 ms This CL: 168 ms This CL + caching off*: 324 ms Base ...
7 years, 5 months ago (2013-07-17 20:15:58 UTC) #5
rmacnak
Now that we've discovered the slowdown was because of a handle leak and fixed it, ...
7 years, 5 months ago (2013-07-18 02:50:02 UTC) #6
rmacnak
https://chromiumcodereview.appspot.com/19188004/diff/23001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://chromiumcodereview.appspot.com/19188004/diff/23001/runtime/lib/mirrors.cc#newcode1194 runtime/lib/mirrors.cc:1194: DARTSCOPE(isolate); On 2013/07/18 02:50:02, Ryan Macnak wrote: > Is ...
7 years, 5 months ago (2013-07-18 17:27:29 UTC) #7
siva
lgtm https://codereview.chromium.org/19188004/diff/29001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/19188004/diff/29001/runtime/lib/mirrors.cc#newcode1199 runtime/lib/mirrors.cc:1199: return result.raw(); If you integrate with new changes ...
7 years, 5 months ago (2013-07-18 20:53:30 UTC) #8
rmacnak
https://codereview.chromium.org/19188004/diff/29001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/19188004/diff/29001/runtime/lib/mirrors.cc#newcode1199 runtime/lib/mirrors.cc:1199: return result.raw(); On 2013/07/18 20:53:30, siva wrote: > If ...
7 years, 5 months ago (2013-07-18 22:55:00 UTC) #9
rmacnak
7 years, 5 months ago (2013-07-19 00:44:42 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 manually as r25193 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698