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

Issue 1410443003: Eliminate unused function maps (Closed)

Created:
5 years, 2 months ago by hausner
Modified:
5 years, 2 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Eliminate unused function maps If a class contains more than 16 functions, the lookup works via a map rather than via a linear lookup in the functions array. If there are less than 16 functions, there is no need to allocate the map. This saves about 240 maps and 7600 map entries in the core libraries alone. BUG= R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/72328eaf934d6ebf6ce60af40b0ac6b75e9f519b

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M runtime/vm/object.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
hausner
Not sure whether the snapshot size is smaller, too. Would be nice.
5 years, 2 months ago (2015-10-15 00:07:07 UTC) #2
siva
LGTM with one comment. https://codereview.chromium.org/1410443003/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1410443003/diff/1/runtime/vm/object.cc#newcode2213 runtime/vm/object.cc:2213: } Not sure who uses ...
5 years, 2 months ago (2015-10-15 01:13:15 UTC) #3
hausner
5 years, 2 months ago (2015-10-15 17:08:24 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
72328eaf934d6ebf6ce60af40b0ac6b75e9f519b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698