Index initialization improvements for Simple Cache.
commit6d62ae85960106307ff8deb1652a8bbe2b24086d
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 12 Aug 2013 05:50:14 +0000 (12 05:50 +0000)
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 12 Aug 2013 05:50:14 +0000 (12 05:50 +0000)
treeb554edb525b491007834dfda90170534d295fdb2
parent19d317d8becb12508cbf6800ecc5434d8c6edd2f
Index initialization improvements for Simple Cache.

The Simple Cache index initialization path was making far too
many allocations, which caused an unneeded early peak in the
heap during index initialization. By reserving memory for
table resizes and making merges from small sets into big sets,
this peak is cut significantly.

R=pliard,ttuttle
BUG=None

Review URL: https://chromiumcodereview.appspot.com/22406005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216941 0039d316-1c4b-4281-b951-d872f2087c98
net/disk_cache/simple/simple_index.cc
net/disk_cache/simple/simple_index_file.cc
net/disk_cache/simple/simple_index_file.h
net/disk_cache/simple/simple_index_unittest.cc