When to use .NET BufferedStream class?

前端 未结 6 725
误落风尘
误落风尘 2020-12-01 05:05

The MSDN site states:

A buffer is a block of bytes in memory used to cache data, thereby reducing the number of calls to the operating system. B

6条回答
  •  天涯浪人
    2020-12-01 05:42

    Best case I know of is when BinaryFormatter serialize/deserialize directly from NetworkStream. Use of BufferedStream inbetween increase performance tenfold.

提交回复
热议问题