Comment #8 on issue 6626 by piersh: Cache files are subject to massive  
fragmentation
http://code.google.com/p/chromium/issues/detail?id=6626

actually, fragmentation is trivial to avoid, especially if you know the  
file size beforehand.

- CreateFile
- SetFilePointer(size)
- SetEndOfFile(size)
- SetFileValidData <- this is the key
- SetFilePointer(0)
- write...
- SetEndOfFile(actual size)
- CloseFile

windows will give you a contiguous block if it can.

good diagnostic tools are defraggler (for sets of files) & contig.exe (for  
single file
details).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to