Does read/write fixed length with java FileChannel improve performance?

51 Views Asked by At

I am a newb in Java programing, and confused about IO API. For System API, read/write a entire block works faster than a random bytes. Can Java implements this feature? Or how to optimize performance during Java IO? I am pretty appreciated for anything you comment, thank you very much!

1

There are 1 best solutions below

1
maxkcy On

I'm a newb too but you may be able to use arrays and buffers with io. Or use NIO which is based off buffers and is non-blocking, so I believe is faster, but I'm not sure.