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

Issue 1470073003: [CacheStorage] Keep caches alive for 30 seconds after opening (Closed)

Created:
5 years ago by jkarlin
Modified:
5 years ago
Reviewers:
nhiroki
CC:
chromium-reviews, darin-cc_chromium.org, jam, jkarlin+watch_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Keep caches alive for 30 seconds after opening Common operations, like CacheStorage.match, quickly open and close caches. Opening the cache is expensive and cache reads often come in succession (e.g., fetching each resource for a page). This CL keeps a reference to each freshly opened cache for 30 seconds so that it can be used again without incurring the overhead of opening. BUG=558427 Committed: https://crrev.com/aff3e8a028bd31ba8f2d65f22c706a1dfbbf9ca6 Cr-Commit-Position: refs/heads/master@{#361645}

Patch Set 1 #

Patch Set 2 : Refactor #

Patch Set 3 : Nits #

Total comments: 2

Patch Set 4 : Remove tests that now make incorrect reference assumptions #

Patch Set 5 : Address comments from PS3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -21 lines) Patch
M content/browser/cache_storage/cache_storage.h View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 1 2 3 chunks +33 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 1 2 3 1 chunk +0 lines, -21 lines 0 comments Download
A content/browser/cache_storage/cache_storage_unittest.cc View 1 2 3 4 1 chunk +121 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
jkarlin
nhiroki@ PTAL, thank you!
5 years ago (2015-11-24 19:15:30 UTC) #2
nhiroki
LGTM after failing tests are fixed https://codereview.chromium.org/1470073003/diff/40001/content/browser/cache_storage/cache_storage_unittest.cc File content/browser/cache_storage/cache_storage_unittest.cc (right): https://codereview.chromium.org/1470073003/diff/40001/content/browser/cache_storage/cache_storage_unittest.cc#newcode46 content/browser/cache_storage/cache_storage_unittest.cc:46: bool isPreservingCache(const CacheStorageCache* ...
5 years ago (2015-11-25 06:21:32 UTC) #4
jkarlin
Thanks! https://codereview.chromium.org/1470073003/diff/40001/content/browser/cache_storage/cache_storage_unittest.cc File content/browser/cache_storage/cache_storage_unittest.cc (right): https://codereview.chromium.org/1470073003/diff/40001/content/browser/cache_storage/cache_storage_unittest.cc#newcode46 content/browser/cache_storage/cache_storage_unittest.cc:46: bool isPreservingCache(const CacheStorageCache* cache) { On 2015/11/25 06:21:32, ...
5 years ago (2015-11-25 13:04:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1470073003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1470073003/80001
5 years ago (2015-11-25 13:04:39 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-11-25 14:10:32 UTC) #9
commit-bot: I haz the power
5 years ago (2015-11-25 14:11:33 UTC) #10
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/aff3e8a028bd31ba8f2d65f22c706a1dfbbf9ca6
Cr-Commit-Position: refs/heads/master@{#361645}

Powered by Google App Engine
This is Rietveld 408576698