Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Java 编程的新手,对 IO API 感到困惑。对于 System API,读/写整个块的速度比随机字节快。Java能实现这个特性吗?或者如何在 Java IO 期间优化性能?我非常感谢您发表任何评论,非常感谢您!
我也是一个新手,但你可以使用 io 的数组和缓冲区。或者使用基于缓冲区且非阻塞的 NIO,所以我相信它更快,但我不确定。