lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello Joshua,

Tuesday, April 27, 2010, 6:32:29 PM, you wrote:

> To check, according to Process Monitor running on Windows 7, I found
> that default fread() using BUFSIZ (512 bytes) reads in 4,096 bytes at a
> time.  fread(), then, hits the disk 8 times more often than the version

:)  there are many levels of caching

i recommend you to read data in 32-64 kb chunks. our experiments shown that
it's the optimal block size for maximum disk i/o performance in Vista
(and probably Win7)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin@gmail.com