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

Issue 53313004: Disk cache v3: The main index table. (Closed)

Created:
7 years, 1 month ago by rvargas (doing something else)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Disk cache v3: The main index table. The IndexTable controls what entries are stored in the cache. This class provides a memory-only view of the underlying structures that store "the index" BUG=241277 TEST=net_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244027

Patch Set 1 : #

Total comments: 14

Patch Set 2 : #

Total comments: 12

Patch Set 3 : add comments #

Patch Set 4 : #

Total comments: 20

Patch Set 5 : Unify UpdateIterator #

Total comments: 9

Patch Set 6 : WalkTables #

Total comments: 25

Patch Set 7 : More comments #

Patch Set 8 : remove From*Address use #

Total comments: 24

Patch Set 9 : #

Total comments: 33

Patch Set 10 : for(;;) & Co #

Total comments: 5

Patch Set 11 : #

Total comments: 14

Patch Set 12 : rename address and hash #

Total comments: 10

Patch Set 13 : #

Patch Set 14 : Rebase #

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2221 lines, -23 lines) Patch
M net/disk_cache/addr.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -8 lines 0 comments Download
M net/disk_cache/disk_format_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/v3/disk_format_v3.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +71 lines, -15 lines 0 comments Download
A net/disk_cache/v3/index_table.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +279 lines, -0 lines 0 comments Download
A net/disk_cache/v3/index_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1149 lines, -0 lines 0 comments Download
A net/disk_cache/v3/index_table_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +706 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (0 generated)
rvargas (doing something else)
7 years, 1 month ago (2013-10-30 22:26:41 UTC) #1
Randy Smith (Not in Mondays)
Ricardo: I'm getting an error accessing this via the "view" links; when I click through ...
7 years, 1 month ago (2013-10-31 17:53:20 UTC) #2
rvargas (doing something else)
On 2013/10/31 17:53:20, rdsmith wrote: > Ricardo: I'm getting an error accessing this via the ...
7 years, 1 month ago (2013-10-31 19:06:06 UTC) #3
Randy Smith (Not in Mondays)
Just a quick heads up that I'm going to be leaving soon, and won't be ...
7 years, 1 month ago (2013-10-31 21:01:55 UTC) #4
Randy Smith (Not in Mondays)
Quick question from doing an initial scan through: It's hard to evaluate an interface without ...
7 years, 1 month ago (2013-10-31 21:24:09 UTC) #5
rvargas (doing something else)
On 2013/10/31 21:24:09, rdsmith wrote: > Quick question from doing an initial scan through: It's ...
7 years, 1 month ago (2013-10-31 22:18:57 UTC) #6
rvargas (doing something else)
> Basically the IndexTable returns a group of entries that match a given timestamp > ...
7 years, 1 month ago (2013-10-31 22:22:09 UTC) #7
Randy Smith (Not in Mondays)
On 2013/10/31 22:18:57, rvargas wrote: > On 2013/10/31 21:24:09, rdsmith wrote: > > Quick question ...
7 years, 1 month ago (2013-11-01 21:51:36 UTC) #8
rvargas (doing something else)
> It's easiest for me to navigate code in my usual development environment, so if ...
7 years, 1 month ago (2013-11-01 22:26:06 UTC) #9
rvargas (doing something else)
On 2013/11/01 22:26:06, rvargas wrote: > > It's easiest for me to navigate code in ...
7 years, 1 month ago (2013-11-02 01:19:46 UTC) #10
Randy Smith (Not in Mondays)
Thanks! I'll try to get a first round back today.
7 years, 1 month ago (2013-11-04 16:04:13 UTC) #11
Randy Smith (Not in Mondays)
On 2013/11/04 16:04:13, rdsmith wrote: > Thanks! I'll try to get a first round back ...
7 years, 1 month ago (2013-11-04 22:32:33 UTC) #12
Randy Smith (Not in Mondays)
Quick question below (not blocking review, but I suspect you'll give me the answer faster ...
7 years, 1 month ago (2013-11-05 19:52:25 UTC) #13
rvargas (doing something else)
https://codereview.chromium.org/53313004/diff/190001/net/disk_cache/v3/index_table.h File net/disk_cache/v3/index_table.h (right): https://codereview.chromium.org/53313004/diff/190001/net/disk_cache/v3/index_table.h#newcode117 net/disk_cache/v3/index_table.h:117: // combination of hash and address. On 2013/11/05 19:52:26, ...
7 years, 1 month ago (2013-11-05 19:59:52 UTC) #14
Randy Smith (Not in Mondays)
Still working on wrapping my brain around the CL. One questions; What is the intention ...
7 years, 1 month ago (2013-11-05 21:58:21 UTC) #15
rvargas (doing something else)
On 2013/11/05 21:58:21, rdsmith wrote: > Still working on wrapping my brain around the CL. ...
7 years, 1 month ago (2013-11-05 22:28:44 UTC) #16
rvargas (doing something else)
and the comments https://codereview.chromium.org/53313004/diff/190001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/190001/net/disk_cache/v3/index_table.cc#newcode362 net/disk_cache/v3/index_table.cc:362: memcpy(destination, &cell_, sizeof(cell_)); On 2013/11/05 21:58:21, ...
7 years, 1 month ago (2013-11-05 22:29:12 UTC) #17
Randy Smith (Not in Mondays)
A couple more interface level questions. I'll start working on reviewing the implementation now. https://codereview.chromium.org/53313004/diff/520001/net/disk_cache/v3/index_table.h ...
7 years, 1 month ago (2013-11-05 22:31:12 UTC) #18
rvargas (doing something else)
https://codereview.chromium.org/53313004/diff/520001/net/disk_cache/v3/index_table.h File net/disk_cache/v3/index_table.h (right): https://codereview.chromium.org/53313004/diff/520001/net/disk_cache/v3/index_table.h#newcode120 net/disk_cache/v3/index_table.h:120: struct IndexIterator { On 2013/11/05 22:31:13, rdsmith wrote: > ...
7 years, 1 month ago (2013-11-06 02:23:02 UTC) #19
Randy Smith (Not in Mondays)
(Just responding to questions/comments; will continue with review.) https://codereview.chromium.org/53313004/diff/520001/net/disk_cache/v3/index_table.h File net/disk_cache/v3/index_table.h (right): https://codereview.chromium.org/53313004/diff/520001/net/disk_cache/v3/index_table.h#newcode176 net/disk_cache/v3/index_table.h:176: int ...
7 years, 1 month ago (2013-11-06 18:16:14 UTC) #20
rvargas (doing something else)
https://codereview.chromium.org/53313004/diff/520001/net/disk_cache/v3/index_table.h File net/disk_cache/v3/index_table.h (right): https://codereview.chromium.org/53313004/diff/520001/net/disk_cache/v3/index_table.h#newcode176 net/disk_cache/v3/index_table.h:176: int CalculateTimestamp(base::Time time); On 2013/11/06 18:16:15, rdsmith wrote: > ...
7 years, 1 month ago (2013-11-07 02:02:07 UTC) #21
Randy Smith (Not in Mondays)
Sorry; a lot of this review is still my climbing the cache learning curve, but ...
7 years, 1 month ago (2013-11-07 20:25:15 UTC) #22
rvargas (doing something else)
Thanks. https://codereview.chromium.org/53313004/diff/190001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/190001/net/disk_cache/v3/index_table.cc#newcode674 net/disk_cache/v3/index_table.cc:674: bucket_id = GetNextBucket(mask_ + 1, header()->max_bucket, extra_table_, On ...
7 years, 1 month ago (2013-11-08 04:22:29 UTC) #23
rvargas (doing something else)
https://codereview.chromium.org/53313004/diff/1070001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1070001/net/disk_cache/v3/index_table.cc#newcode874 net/disk_cache/v3/index_table.cc:874: if ((iterator->forward && time < iterator->timestamp) || On 2013/11/08 ...
7 years, 1 month ago (2013-11-08 23:58:18 UTC) #24
Randy Smith (Not in Mondays)
Still reviewing, but this is a bundle of comments all about iteration through the table, ...
7 years, 1 month ago (2013-11-11 20:54:53 UTC) #25
rvargas (doing something else)
Thanks https://codereview.chromium.org/53313004/diff/190001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/190001/net/disk_cache/v3/index_table.cc#newcode674 net/disk_cache/v3/index_table.cc:674: bucket_id = GetNextBucket(mask_ + 1, header()->max_bucket, extra_table_, On ...
7 years, 1 month ago (2013-11-12 00:24:03 UTC) #26
Randy Smith (Not in Mondays)
The iteration stuff all looks good to me (with the nits below around the comment ...
7 years, 1 month ago (2013-11-13 21:14:12 UTC) #27
rvargas (doing something else)
Thanks https://codereview.chromium.org/53313004/diff/1530001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1530001/net/disk_cache/v3/index_table.cc#newcode250 net/disk_cache/v3/index_table.cc:250: Addr EntryCell::GetAddress() const { On 2013/11/13 21:14:12, rdsmith ...
7 years, 1 month ago (2013-11-14 02:54:19 UTC) #28
Randy Smith (Not in Mondays)
Responses to comments on the interfaces; I still need to do a detailed review of ...
7 years, 1 month ago (2013-11-18 20:37:04 UTC) #29
rvargas (doing something else)
https://codereview.chromium.org/53313004/diff/1530001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1530001/net/disk_cache/v3/index_table.cc#newcode250 net/disk_cache/v3/index_table.cc:250: Addr EntryCell::GetAddress() const { On 2013/11/18 20:37:04, rdsmith wrote: ...
7 years, 1 month ago (2013-11-18 23:43:33 UTC) #30
Randy Smith (Not in Mondays)
Part-way through reviewing Init(), and getting somewhat bogged down in understanding the use of hash ...
7 years ago (2013-11-25 19:48:07 UTC) #31
rvargas (doing something else)
https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc#newcode454 net/disk_cache/v3/index_table.cc:454: DCHECK_GE(extra_size, 0); On 2013/11/25 19:48:07, rdsmith wrote: > Does ...
7 years ago (2013-11-26 00:32:41 UTC) #32
rvargas (doing something else)
On 2013/11/25 19:48:07, rdsmith wrote: > Part-way through reviewing Init(), and getting somewhat bogged down ...
7 years ago (2013-11-26 00:48:56 UTC) #33
rvargas (doing something else)
Updated version https://codereview.chromium.org/53313004/diff/1530001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1530001/net/disk_cache/v3/index_table.cc#newcode250 net/disk_cache/v3/index_table.cc:250: Addr EntryCell::GetAddress() const { On 2013/11/25 19:48:07, ...
7 years ago (2013-11-26 19:54:40 UTC) #34
Randy Smith (Not in Mondays)
On 2013/11/26 00:48:56, rvargas wrote: > On 2013/11/25 19:48:07, rdsmith wrote: > > Part-way through ...
7 years ago (2013-12-02 18:53:42 UTC) #35
Randy Smith (Not in Mondays)
On 2013/11/26 00:48:56, rvargas wrote: > On 2013/11/25 19:48:07, rdsmith wrote: > > I feel ...
7 years ago (2013-12-02 19:28:01 UTC) #36
rvargas (doing something else)
On 2013/12/02 18:53:42, rdsmith wrote: > On 2013/11/26 00:48:56, rvargas wrote: > > On 2013/11/25 ...
7 years ago (2013-12-02 21:01:49 UTC) #37
Randy Smith (Not in Mondays)
Next round of comments. Made it all the way through index_table.cc this time! :-} https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc ...
7 years ago (2013-12-02 21:48:05 UTC) #38
rvargas (doing something else)
On 2013/12/02 19:28:01, rdsmith wrote: > On 2013/11/26 00:48:56, rvargas wrote: > > On 2013/11/25 ...
7 years ago (2013-12-03 00:41:32 UTC) #39
rvargas (doing something else)
Thanks again https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc#newcode463 net/disk_cache/v3/index_table.cc:463: memset(params->extra_table, 0, extra_size * sizeof(IndexBucket)); On 2013/12/02 ...
7 years ago (2013-12-04 01:04:16 UTC) #40
Randy Smith (Not in Mondays)
On 2013/12/02 21:01:49, rvargas wrote: > On 2013/12/02 18:53:42, rdsmith wrote: > > On 2013/11/26 ...
7 years ago (2013-12-04 20:59:34 UTC) #41
Randy Smith (Not in Mondays)
Responses to your comments; continuing my review. https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc#newcode463 net/disk_cache/v3/index_table.cc:463: memset(params->extra_table, 0, ...
7 years ago (2013-12-05 19:17:47 UTC) #42
rvargas (doing something else)
This time there is no code update. I'm still considering what to do with the ...
7 years ago (2013-12-07 02:13:44 UTC) #43
rvargas (doing something else)
New version up, ptal. https://codereview.chromium.org/53313004/diff/1920001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1920001/net/disk_cache/v3/index_table.cc#newcode922 net/disk_cache/v3/index_table.cc:922: header()->max_bucket = mask_; On 2013/12/07 ...
7 years ago (2013-12-19 23:51:24 UTC) #44
Randy Smith (Not in Mondays)
On 2013/12/03 00:41:32, rvargas wrote: > On 2013/12/02 19:28:01, rdsmith wrote: > > On 2013/11/26 ...
6 years, 12 months ago (2013-12-26 19:37:24 UTC) #45
Randy Smith (Not in Mondays)
On 2013/12/04 20:59:34, rdsmith wrote: > On 2013/12/02 21:01:49, rvargas wrote: > > On 2013/12/02 ...
6 years, 12 months ago (2013-12-26 19:39:30 UTC) #46
Randy Smith (Not in Mondays)
On 2013/12/26 19:39:30, rdsmith wrote: > On 2013/12/04 20:59:34, rdsmith wrote: > > On 2013/12/02 ...
6 years, 12 months ago (2013-12-26 21:39:41 UTC) #47
Randy Smith (Not in Mondays)
Next round of comments. One high level question, that doesn't have much if any relationship ...
6 years, 12 months ago (2013-12-26 21:45:48 UTC) #48
rvargas (doing something else)
On 2013/12/26 19:37:24, rdsmith wrote: > On 2013/12/03 00:41:32, rvargas wrote: > > On 2013/12/02 ...
6 years, 12 months ago (2013-12-26 23:44:15 UTC) #49
rvargas (doing something else)
On 2013/12/26 21:45:48, rdsmith wrote: > Next round of comments. > > One high level ...
6 years, 12 months ago (2013-12-26 23:52:33 UTC) #50
Randy Smith (Not in Mondays)
On 2013/12/26 23:44:15, rvargas wrote: > On 2013/12/26 19:37:24, rdsmith wrote: > > On 2013/12/03 ...
6 years, 12 months ago (2013-12-27 15:16:53 UTC) #51
Randy Smith (Not in Mondays)
On 2013/12/26 23:52:33, rvargas wrote: > On 2013/12/26 21:45:48, rdsmith wrote: > > Next round ...
6 years, 12 months ago (2013-12-27 15:19:09 UTC) #52
rvargas (doing something else)
renamed version up. https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/1810001/net/disk_cache/v3/index_table.cc#newcode473 net/disk_cache/v3/index_table.cc:473: DCHECK_LE(extra_bits_, 11); > > I think ...
6 years, 12 months ago (2013-12-27 19:31:45 UTC) #53
Randy Smith (Not in Mondays)
https://codereview.chromium.org/53313004/diff/2050001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/2050001/net/disk_cache/v3/index_table.cc#newcode25 net/disk_cache/v3/index_table.cc:25: const int kCellIdOffset = 22; How about a comment ...
6 years, 11 months ago (2014-01-06 22:28:34 UTC) #54
rvargas (doing something else)
Thanks for your time. https://codereview.chromium.org/53313004/diff/2050001/net/disk_cache/v3/index_table.cc File net/disk_cache/v3/index_table.cc (right): https://codereview.chromium.org/53313004/diff/2050001/net/disk_cache/v3/index_table.cc#newcode25 net/disk_cache/v3/index_table.cc:25: const int kCellIdOffset = 22; ...
6 years, 11 months ago (2014-01-08 01:29:11 UTC) #55
Randy Smith (Not in Mondays)
LGTM. Sorry it's taken so long :-{.
6 years, 11 months ago (2014-01-08 19:10:02 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/53313004/2470001
6 years, 11 months ago (2014-01-09 21:54:34 UTC) #57
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 00:25:23 UTC) #58
Message was sent while issue was closed.
Change committed as 244027

Powered by Google App Engine
This is Rietveld 408576698