From Dev.to
Stop Bouncing Bytes Through User Space: Practical Zero-Copy File I/O on Linux
Stop Bouncing Bytes Through User Space: Practical Zero-Copy File I/O on Linux Every file copy you have ever written probably looks like this: while ((n = read(in, buf, sizeof buf)) > 0) write(ou...