Index: net/disk_cache/simple/simple_index_file.h |
diff --git a/net/disk_cache/simple/simple_index_file.h b/net/disk_cache/simple/simple_index_file.h |
index 8a96a7208000dd7d1674345d3225b1d7fb1a662f..b536df9a1e72cbaaa8a32f01ef33e82fa6f915d3 100644 |
--- a/net/disk_cache/simple/simple_index_file.h |
+++ b/net/disk_cache/simple/simple_index_file.h |
@@ -97,6 +97,10 @@ class NET_EXPORT_PRIVATE SimpleIndexFile { |
private: |
friend class WrappedSimpleIndexFile; |
+ // When loading the entries from disk, add this many extra hash buckets to |
+ // prevent reallocation on the IO thread when merging in new live entries. |
+ static const int kExtraSizeForMerge = 512; |
+ |
// Synchronous (IO performing) implementation of LoadIndexEntries. |
static void SyncLoadIndexEntries(base::Time cache_last_modified, |
const base::FilePath& cache_directory, |