title: How to calculate the optimum chunk size for uploading large files
body: <p>Is there such a thing as an optimum chunk size for processing large files?  I have an upload service (WCF) which is used to accept file uploads ranging from several hundred megabytes.</p>
  
  <p>I've experimented with 4KB, 8KB through to 1MB chunk sizes.  Bigger chunk sizes is good for performance (faster processing) but it comes at the cost of memory.</p>
  
  <p>So, is there way to work out the optimum chunk size at the moment of uploading files.  How would one go about doing such calculations?  Would it be a combination of available memory and the client, CPU and network bandwidth which determines the optimum size?</p>
  
  <p>Cheers</p>
  
  <p>EDIT: Probably should mention that the client app will be in silverlight.</p>