|
Prev: Performance issue: Writing multiple files vs single file using fopen/fwrite
Next: VS2005 hangs upon completion of "start debug"
From: David Lowndes on 14 May 2008 02:53 >I want to know why is writing into multiple files slow. for the single >file also we are opening and closing it 400 times so why is this >running 80 seconds faster. If you're overwriting the same file and aren't altering the size, you're probably writing to the same areas of the disk, so there will be less disk head movements. There's probably some caching benefit as well. Dave |