Skip to content

Instantly share code, notes, and snippets.

@games647
Created March 3, 2020 09:58
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 games647/e17c2faaa294c30dcb1dd798a9ab2b5d to your computer and use it in GitHub Desktop.
Save games647/e17c2faaa294c30dcb1dd798a9ab2b5d to your computer and use it in GitHub Desktop.
Zero-Copy Notes
* https://en.wikipedia.org/wiki/Zero-copy
* Java input streams can support zero-copy through the java.nio.channels.FileChannel's transferTo() method if the underlying operating system also supports zero copy
* Only **from** file
* Linux: sendFile call
* Windows: TransmitFile
* Linux 4.18 supports **from** socket zero-copy
* Microsoft Windows supports zero-copy through the TransmitFile API.
* Alternative: Mapping direct memory telling the kernel to use that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment