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

Issue 268783006: Implement an LRU cache in dart:_internal and use it for the getter/setter caches in the VM's mirror… (Closed)

Created:
6 years, 7 months ago by rmacnak
Modified:
6 years, 6 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Implement an LRU cache in dart:_internal and use it for the getter/setter caches in the VM's mirrors. BUG=http://dartbug.com/18445 R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=37059

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -24 lines) Patch
M runtime/lib/mirrors_impl.dart View 1 2 5 chunks +6 lines, -24 lines 0 comments Download
M sdk/lib/internal/internal.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/internal/internal_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A sdk/lib/internal/lru.dart View 1 2 1 chunk +125 lines, -0 lines 0 comments Download
A tests/lib/mirrors/lru_test.dart View 1 2 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rmacnak
GetField benchmark goes from 189-196 to 239-252 (25% slower)
6 years, 7 months ago (2014-05-06 00:26:19 UTC) #1
Ivan Posva
https://codereview.chromium.org/268783006/diff/20001/sdk/lib/internal/lru.dart File sdk/lib/internal/lru.dart (right): https://codereview.chromium.org/268783006/diff/20001/sdk/lib/internal/lru.dart#newcode11 sdk/lib/internal/lru.dart:11: LRUAssociation next; Empty lines between methods please. https://codereview.chromium.org/268783006/diff/20001/sdk/lib/internal/lru.dart#newcode41 sdk/lib/internal/lru.dart:41: ...
6 years, 7 months ago (2014-05-25 20:00:26 UTC) #2
rmacnak
https://codereview.chromium.org/268783006/diff/20001/sdk/lib/internal/lru.dart File sdk/lib/internal/lru.dart (right): https://codereview.chromium.org/268783006/diff/20001/sdk/lib/internal/lru.dart#newcode45 sdk/lib/internal/lru.dart:45: var start = key.hashCode % table.length; On 2014/05/25 20:00:26, ...
6 years, 6 months ago (2014-05-30 21:26:05 UTC) #3
Ivan Posva
LGTM -ip
6 years, 6 months ago (2014-06-05 23:41:54 UTC) #4
rmacnak
6 years, 6 months ago (2014-06-06 00:45:08 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r37059 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698