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

Unified Diff: net/disk_cache/simple/simple_index.h

Issue 2918893002: evict larger entries first (Closed)
Patch Set: use rank instead of time Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/simple/simple_index.h
diff --git a/net/disk_cache/simple/simple_index.h b/net/disk_cache/simple/simple_index.h
index 6740c2c91e2b810caa5d2092d93baff6b616c85e..f7ec11132980de17a395eeb8dc85a9d39a1bea72 100644
--- a/net/disk_cache/simple/simple_index.h
+++ b/net/disk_cache/simple/simple_index.h
@@ -70,6 +70,7 @@ class NET_EXPORT_PRIVATE EntryMetadata {
}
static const int kOnDiskSizeBytes = 16;
+ static const int kEstimatedEntryOverhead = 512;
private:
friend class SimpleIndexFileTest;

Powered by Google App Engine
This is Rietveld 408576698