the importance of buffersize
While streaming big files (more开发者_运维技巧 than 150mb) with ASP.NET, to what should the buffersize be set? I use 16kb as default.
Does making the buffersize bigger (for example 320kb) increase performance and decrease server load?
The smaller the buffer the slower the transfer. The larger the buffer the more memory you will potentially use.
Found a similar posting When handling large file transfers in ASP.NET what precautions should you take? The MS Site recommends 100000 bytes but if your site can handle the higher buffer then use it.
精彩评论