title: Is there an optimal byte size for sending data over a network?
body: <p>I assume 100 bytes is too small and can slow down larger file transfers with all of the writes, but something like 1MB seems like it may be too much.  Does anyone have any suggestions for an optimal chunk of bytes per write for sending data over a network?</p>
  
  <p>To elaborate a bit more, I'm implementing something that sends data over a network connection and show the progress of that data being sent.  I've noticed if I send large files at about 100 bytes each write, it is extremely slow but the progress bar works out very nicely. However, if I send at say 1M per write, it is much faster, but the progress bar doesn't work as nicely due to the larger chunks being sent.</p>