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

Issue 1410973008: Added an experiment for an LRU snapshot cache. (Closed)

Created:
5 years, 1 month ago by jbbegue
Modified:
5 years, 1 month ago
Reviewers:
sdefresne
CC:
chromium-reviews, sdefresne+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added an experiment for an LRU snapshot cache. Added the LRUCache class to support a cache deiscarding NSObjects in Least Recently Used order. Added LRUCache unit tests. Added an experimental flags controlled by switches and finch. Modified the SnapshotCache class to switch using the LRU cache instead of the dictionnary when the experiement is enabled. TEST="unit tests in lru_cache_unittest.mm the experiment must be enabled before testing" BUG=527846 Committed: https://crrev.com/cba2cb0bfff0995e44355e37db9afd252b76b9c7 Cr-Commit-Position: refs/heads/master@{#358298}

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -31 lines) Patch
M ios/chrome/browser/chrome_switches.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/chrome_switches.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M ios/chrome/browser/experimental_flags.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/experimental_flags.mm View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A ios/chrome/browser/snapshots/lru_cache.h View 1 1 chunk +68 lines, -0 lines 0 comments Download
A ios/chrome/browser/snapshots/lru_cache.mm View 1 2 1 chunk +135 lines, -0 lines 0 comments Download
A ios/chrome/browser/snapshots/lru_cache_unittest.mm View 1 chunk +73 lines, -0 lines 0 comments Download
M ios/chrome/browser/snapshots/snapshot_cache.h View 1 3 chunks +14 lines, -0 lines 0 comments Download
M ios/chrome/browser/snapshots/snapshot_cache.mm View 1 11 chunks +76 lines, -14 lines 0 comments Download
M ios/chrome/browser/snapshots/snapshot_cache_unittest.mm View 1 5 chunks +8 lines, -17 lines 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/ios_chrome_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
jbbegue
5 years, 1 month ago (2015-11-03 11:07:26 UTC) #3
sdefresne
https://codereview.chromium.org/1410973008/diff/1/ios/chrome/browser/snapshots/lru_cache.h File ios/chrome/browser/snapshots/lru_cache.h (right): https://codereview.chromium.org/1410973008/diff/1/ios/chrome/browser/snapshots/lru_cache.h#newcode13 ios/chrome/browser/snapshots/lru_cache.h:13: - (void)lruCacheWillEvictObject:(id<NSObject>)obj; nit: s/obj/object/ https://codereview.chromium.org/1410973008/diff/1/ios/chrome/browser/snapshots/lru_cache.h#newcode26 ios/chrome/browser/snapshots/lru_cache.h:26: // evict. The ...
5 years, 1 month ago (2015-11-03 11:25:19 UTC) #4
jbbegue
https://codereview.chromium.org/1410973008/diff/1/ios/chrome/browser/snapshots/lru_cache.h File ios/chrome/browser/snapshots/lru_cache.h (right): https://codereview.chromium.org/1410973008/diff/1/ios/chrome/browser/snapshots/lru_cache.h#newcode13 ios/chrome/browser/snapshots/lru_cache.h:13: - (void)lruCacheWillEvictObject:(id<NSObject>)obj; On 2015/11/03 11:25:18, sdefresne wrote: > nit: ...
5 years, 1 month ago (2015-11-03 13:37:19 UTC) #5
sdefresne
lgtm once comments are addressed. https://codereview.chromium.org/1410973008/diff/20001/ios/chrome/browser/experimental_flags.mm File ios/chrome/browser/experimental_flags.mm (right): https://codereview.chromium.org/1410973008/diff/20001/ios/chrome/browser/experimental_flags.mm#newcode58 ios/chrome/browser/experimental_flags.mm:58: return true; I guess ...
5 years, 1 month ago (2015-11-03 16:58:08 UTC) #6
jbbegue
https://codereview.chromium.org/1410973008/diff/20001/ios/chrome/browser/experimental_flags.mm File ios/chrome/browser/experimental_flags.mm (right): https://codereview.chromium.org/1410973008/diff/20001/ios/chrome/browser/experimental_flags.mm#newcode58 ios/chrome/browser/experimental_flags.mm:58: return true; On 2015/11/03 16:58:08, sdefresne wrote: > I ...
5 years, 1 month ago (2015-11-05 17:14:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410973008/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410973008/40001
5 years, 1 month ago (2015-11-05 17:15:49 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/90594) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-05 17:18:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410973008/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410973008/60001
5 years, 1 month ago (2015-11-06 10:09:21 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-06 10:35:32 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 10:36:46 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cba2cb0bfff0995e44355e37db9afd252b76b9c7
Cr-Commit-Position: refs/heads/master@{#358298}

Powered by Google App Engine
This is Rietveld 408576698