-
-
Save AndrewChanChina/0eeda7cfbddc8fc471ac to your computer and use it in GitHub Desktop.
文件拷贝的性能优化
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Like other have said, use FileChannel.transferTo() or FileChannel.transferFrom(). The key advantage here is that the JVM uses the OS's access to DMA (Direct Memory Access) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment