Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


file read/write buffer sizes

This topic is 6296 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I recently made a program that packs/unpacks files. I used a loop, copying 1mb at a time until done. Now I know that if I had copied 1 byte at a time it''d be really slow, but at what point does a bigger buffer not cause any speed improvements? I mean if I read 100mb into a buffer (assuming there''s the ram) the hard drive couldn''t do that in 1 go like a smaller chunk. It''d be useful to know cos I don''t want to waste ram with a huge buffer (even if it is temporary) that doesn''t help speed, but I don''t want to restrict the speed with a buffer that''s too small. Hope I''m making sense, thanks

Share this post

Link to post
Share on other sites
I''m not sure, just guessing, but I''d guess around 32 or 64k.

Do some performance test & find out

Magmai Kai Holmlor
- The disgruntled & disillusioned

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!