zerocopy
zerocopy copied to clipboard
Zero-copy I/O primitives and pipelines for Go. Linux-specific.
There are TransmitFile and TransmitPackets in Windows. Is it possible to implement zerocopy in windows? I'm a rookie, just came to ask if this idea is possible after feeling the...
Besides splice(2) and tee(2), Linux also offers [copy_file_range(2)](http://man7.org/linux/man-pages/man2/copy_file_range.2.html), opening the door for potential file-to-file copying optimizations, at the file system level. Perhaps we should look into supporting this. It doesn't...
The standard library splice(2) [tests and benchmarks](https://golang.org/src/net/splice_test.go) should be copied into our source tree, and extended to capture the whole range of `zerocopy.Transfer` capabilities. Also, we should test the algorithm...
We must close the pipe to release the file handle when transfer exits, otherwise the number of handles may overflow in high-concurrency scenarios.