Just for fun, I develop a download manager and I’d like to know if reading a large stack of data (i.e. 80 or 100KB) from a socket over the net makes the download speed higher, instead of reading 4KB for each loop iteration?
(My average download speed is 200KBPS when I download a file with firefox for example)
Thanks, Nir Tayeb.
The answer is NO.
your network transfer rate (200kbps) indicates that buffering 4k or 8k or 200k will hardly make a difference. The time spent between reads is too small. The bottleneck seems to be your transfer rate anyway.
Let’s try with a stackoverflow 30.9MB mp3 podcast:
The results in my system:
So for my system, 2 megabit connection, file size, server chosen, it is not much of a difference if I used chunked reading or not.