title: File download through WCF slower than through IIS
body: <p>The following method (in which I hopefully did not make any mistakes while dramatically simplifying it for this post) is working properly and set up using the Streamed transfer mode over the net.tcp protocol.  The problem is that the performance is significantly worse than downloading the same file through IIS over http. Why would this be, and what things can I change to improve the performance?</p>
  
  <pre><code>Stream WebSiteStreamedServiceContract.DownloadFile( string filePath ) {
      return File.OpenRead( filePath );
  }
  </code></pre>
  
  <p>Finally, is WCF taking responsibility for properly disposing my stream, and does it do a good job at this?  If not, what am I supposed to do instead?</p>
  
  <p>Thank you.</p>