diff options
Diffstat (limited to 'net/disk_cache')
| -rw-r--r-- | net/disk_cache/simple/simple_index_file.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/disk_cache/simple/simple_index_file.cc b/net/disk_cache/simple/simple_index_file.cc index 7e80c02..025ffe9 100644 --- a/net/disk_cache/simple/simple_index_file.cc +++ b/net/disk_cache/simple/simple_index_file.cc @@ -423,10 +423,7 @@ void SimpleIndexFile::Deserialize(const char* data, int data_len, return; } -#if !defined(OS_WIN) - // TODO(gavinp): Consider using std::unordered_map. - entries->resize(index_metadata.GetNumberOfEntries() + kExtraSizeForMerge); -#endif + entries->reserve(index_metadata.GetNumberOfEntries() + kExtraSizeForMerge); while (entries->size() < index_metadata.GetNumberOfEntries()) { uint64_t hash_key; EntryMetadata entry_metadata; |
