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

Issue 27345: New disk cache eviction algorithm. (Closed)

Created:
11 years, 9 months ago by rvargas (doing something else)
Modified:
9 years, 6 months ago
Reviewers:
Nicolas Sylvain
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

New disk cache eviction algorithm (partial implementation). Disabled by a #def. When enabled, file format 2.1 is used, with a possible update from ver 2.0. If a version with this code disabled is run after the upgrade, it will just discard the file and go back to 2.0. We now put some of those extra list to use! Entries are separated into various lists depending on how often are used, and we keep track of previously evicted entries. If the new algorithm is not enabled, most of the code just goes through a different path (with the old code instead of the new one). One notable exception is OpenFollowingEntry, used to enumerate the entries on the cache; the code changed significantly to support the new version of the "cache iterator", but functionally should do the same as the current code. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11145

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+638 lines, -110 lines) Patch
M net/disk_cache/backend_impl.h View 1 2 7 chunks +32 lines, -9 lines 0 comments Download
M net/disk_cache/backend_impl.cc View 1 2 3 15 chunks +233 lines, -48 lines 0 comments Download
M net/disk_cache/backend_unittest.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M net/disk_cache/disk_cache.h View 2 2 chunks +4 lines, -4 lines 0 comments Download
M net/disk_cache/disk_format.h View 1 2 4 chunks +7 lines, -5 lines 0 comments Download
M net/disk_cache/entry_impl.h View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M net/disk_cache/entry_impl.cc View 1 2 2 chunks +34 lines, -21 lines 0 comments Download
M net/disk_cache/eviction.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M net/disk_cache/eviction.cc View 1 2 6 chunks +248 lines, -11 lines 0 comments Download
M net/disk_cache/rankings.h View 1 2 5 chunks +28 lines, -1 line 0 comments Download
M net/disk_cache/rankings.cc View 1 2 4 chunks +22 lines, -2 lines 0 comments Download
M net/disk_cache/stats.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/stats.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
rvargas (doing something else)
11 years, 9 months ago (2009-03-05 01:02:46 UTC) #1
Nicolas Sylvain
not done with the review, but i have a couple of questions. http://codereview.chromium.org/27345/diff/2001/3009 File net/disk_cache/backend_impl.cc ...
11 years, 9 months ago (2009-03-05 02:24:33 UTC) #2
rvargas (doing something else)
http://codereview.chromium.org/27345/diff/2001/3009 File net/disk_cache/backend_impl.cc (right): http://codereview.chromium.org/27345/diff/2001/3009#newcode1033 Line 1033: if (!ret) On 2009/03/05 02:24:33, Nicolas Sylvain wrote: ...
11 years, 9 months ago (2009-03-05 04:16:47 UTC) #3
Nicolas Sylvain
11 years, 9 months ago (2009-03-06 02:06:58 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698