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

Issue 14230009: Write the Simple Cache Index file to disk once in a while (Closed)

Created:
7 years, 8 months ago by felipeg
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Write the Index File to disk after 20 seconds elapsed since the last cache operation has happened. This will mitigate the need to recover from enumerating all files on disk. BUG=173394 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194898

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 14

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : sync #

Patch Set 7 : rebase with gavin cl #

Patch Set 8 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -11 lines) Patch
M net/disk_cache/simple/simple_index.h View 1 2 3 4 5 6 4 chunks +13 lines, -2 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 2 3 4 5 6 11 chunks +55 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
felipeg
7 years, 8 months ago (2013-04-16 19:40:58 UTC) #1
gavinp
Two quick things: Make the one liner a bit shorter, and definitely reference simple backend ...
7 years, 8 months ago (2013-04-17 07:47:30 UTC) #2
gavinp
Please run a good selection of try bots. It's especially important given the CQ status, ...
7 years, 8 months ago (2013-04-17 07:54:41 UTC) #3
Philippe
+1 on Gavin's comments too although this mostly looks good to me. https://codereview.chromium.org/14230009/diff/4001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc ...
7 years, 8 months ago (2013-04-17 08:31:39 UTC) #4
gavinp
Can we also make sure to write the index at least once every few minutes?
7 years, 8 months ago (2013-04-17 14:02:14 UTC) #5
pasko-google - do not use
Overall nice! please fill in BUG=. On 2013/04/17 14:02:14, gavinp wrote: > Can we also ...
7 years, 8 months ago (2013-04-17 14:37:30 UTC) #6
felipeg
Done https://chromiumcodereview.appspot.com/14230009/diff/4001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://chromiumcodereview.appspot.com/14230009/diff/4001/net/disk_cache/simple/simple_index.cc#newcode87 net/disk_cache/simple/simple_index.cc:87: io_thread_(io_thread) On 2013/04/17 08:31:39, Philippe wrote: > On ...
7 years, 8 months ago (2013-04-17 15:01:48 UTC) #7
pasko-google - do not use
lgtm https://chromiumcodereview.appspot.com/14230009/diff/4001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://chromiumcodereview.appspot.com/14230009/diff/4001/net/disk_cache/simple/simple_index.cc#newcode87 net/disk_cache/simple/simple_index.cc:87: io_thread_(io_thread) On 2013/04/17 15:01:48, felipeg1 wrote: > On ...
7 years, 8 months ago (2013-04-17 15:38:16 UTC) #8
Philippe
lgtm, thanks Felipe. https://chromiumcodereview.appspot.com/14230009/diff/4001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://chromiumcodereview.appspot.com/14230009/diff/4001/net/disk_cache/simple/simple_index.cc#newcode87 net/disk_cache/simple/simple_index.cc:87: io_thread_(io_thread) On 2013/04/17 15:01:48, felipeg1 wrote: ...
7 years, 8 months ago (2013-04-17 15:39:18 UTC) #9
pasko-google - do not use
https://chromiumcodereview.appspot.com/14230009/diff/13001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://chromiumcodereview.appspot.com/14230009/diff/13001/net/disk_cache/simple/simple_index.cc#newcode324 net/disk_cache/simple/simple_index.cc:324: last_write_to_disk_ = base::Time::Now(); On 2013/04/17 15:39:18, Philippe wrote: > ...
7 years, 8 months ago (2013-04-17 15:51:12 UTC) #10
felipeg
https://chromiumcodereview.appspot.com/14230009/diff/13001/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://chromiumcodereview.appspot.com/14230009/diff/13001/net/disk_cache/simple/simple_index.cc#newcode310 net/disk_cache/simple/simple_index.cc:310: last_write_to_disk_ = base::Time::Now(); On 2013/04/17 15:38:16, pasko wrote: > ...
7 years, 8 months ago (2013-04-17 16:00:51 UTC) #11
gavinp
LGTM. I think this needs a rebase. There's some conflicting changes in the CQ too ...
7 years, 8 months ago (2013-04-18 10:11:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felipeg@chromium.org/14230009/38001
7 years, 8 months ago (2013-04-18 10:25:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felipeg@chromium.org/14230009/52001
7 years, 8 months ago (2013-04-18 10:47:22 UTC) #14
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 12:40:25 UTC) #15
Message was sent while issue was closed.
Change committed as 194898

Powered by Google App Engine
This is Rietveld 408576698