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

Issue 2979653002: [kernel] Only add metadata if there's at least one annotation (Closed)

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

Description

[kernel] Only add metadata if there's at least one annotation. Currently we run execute "library.AddFieldMetadata", "library.AddFunctionMetadata" etc for all fields and methods, even if they do not contain any annotations (which is what will eventually be extracted from it if ever used). This CL changes that to only execute the "AddXMetadata" if there are any annotations. This saves the VM from creating strings and fields that aren't really used anyway, while - as before - returning an empty array when answering a request for metadata for something without any. BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/b0de84343a61b52babb70059b0e2c34984379880

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -14 lines) Patch
M runtime/vm/kernel_binary_flowgraph.h View 8 chunks +28 lines, -8 lines 0 comments Download
M runtime/vm/kernel_reader.cc View 7 chunks +10 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 6 (3 generated)
jensj
I expect this to give a (slight) performance boost, though my attempt to submit to ...
3 years, 5 months ago (2017-07-11 08:02:07 UTC) #3
Kevin Millikin (Google)
LGTM.
3 years, 5 months ago (2017-07-11 08:37:10 UTC) #4
jensj
3 years, 5 months ago (2017-07-11 08:40:56 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
b0de84343a61b52babb70059b0e2c34984379880 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698