Thread View: alt.comp.hardware
1 messages
1 total messages
Started by Skybuck Flying
Sat, 21 Sep 2002 13:36
optimal buffer size for writing to harddisks ?
Author: Skybuck Flying
Date: Sat, 21 Sep 2002 13:36
Date: Sat, 21 Sep 2002 13:36
23 lines
1878 bytes
1878 bytes
Hi... Do you happen to know what would be the optimal buffer size for writing to harddisks ? It probably differs from disk to disk... probably even os to os... but I am talking windows here. For example a buffer of 1 byte would be very slow. Writing and reading to harddisks/files byte by byte is very slow... probably a mixture of seektime but probably not because of cache... the reason it's slow is probably api calling etc... Also a buffer of 10 or 100 megabyte seems to slow also... it's just too big... So what would be the optimal buffer size for TfileStream.Write... ? I once used a 4 kb buffer which worked ok... Is there any theory on this ? :) Skybuck.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads