Buffered vs non buffered, which one to use?

前端 未结 5 560
醉酒成梦
醉酒成梦 2021-02-05 19:58

I am sorry if this is a duplicate but I was not able to find a definitive answer to what is the best practice for each type.

I would like to know what the appropriate co

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-05 20:36

    Use a buffer if the stream is going to have lots of small access. Use unbuffered if you are going to have relatively few, relatively large accesses.

提交回复
热议问题