Skip to content

Instantly share code, notes, and snippets.

@AndrewChanChina
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewChanChina/0eeda7cfbddc8fc471ac to your computer and use it in GitHub Desktop.
Save AndrewChanChina/0eeda7cfbddc8fc471ac to your computer and use it in GitHub Desktop.
文件拷贝的性能优化
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