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

Unified Diff: net/disk_cache/mapped_file_win.cc

Issue 10454093: Disk cache: Pre-read file headers when opening files (posix). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« net/disk_cache/mapped_file_posix.cc ('K') | « net/disk_cache/mapped_file_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/mapped_file_win.cc
===================================================================
--- net/disk_cache/mapped_file_win.cc (revision 139948)
+++ net/disk_cache/mapped_file_win.cc (working copy)
@@ -28,7 +28,7 @@
view_size_ = size;
// Make sure we detect hardware failures reading the headers.
- size_t temp_len = size ? size : 4096;
+ size_t temp_len = size ? size : 4096 * 2;
scoped_array<char> temp(new char[temp_len]);
if (!Read(temp.get(), temp_len, 0))
return NULL;
« net/disk_cache/mapped_file_posix.cc ('K') | « net/disk_cache/mapped_file_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698