Zero-copy in Go: sendfile, splice, and the cost of io.Copy
Summary
Technical explainer on Go zero-copy IO with sendfile and splice on Linux. It shows how the Go runtime can use fast path transfers from file to socket, how wrapping a reader disrupts this path, and provides practical rules of thumb and benchmarks using strace and CPU profiling.