Usage of BufferedInputStream

前端 未结 5 1919
误落风尘
误落风尘 2020-12-07 23:03

Let me preface this post with a single caution. I am a total beginner when it comes to Java. I have been programming PHP on and off for a while, but I was ready to make a

5条回答
  •  长情又很酷
    2020-12-07 23:12

    BufferedInputStream reads more of the file that you need in advance. As I understand it, it's doing more work in advance, like, 1 big continous disk read vs doing many in a tight loop.

    As far as profiling - I like the profiler that's built into netbeans. It's really easy to get started with. :-)

提交回复
热议问题