In an application I am developing I use splice on Linux for socket-to-socket data transfer.
splice or an equivalent solution?spliceing on Windows with sendfile¹ + memmap¹?¹ Both exist on Windows under different names which I do not remember.
Update
You can see the performance improvements of splice vs user space buffers on Linux.

DF, DR, F, MF, MR are my application in its different tunneling modes, NX is NGINX web server-p+t uses the Linux system call splice
+p-t uses a portable implementation with user space buffers+p+t uses a portable implementation with user space buffers and multiple OS threadsOpenBSD has sosplice and somove: http://www.openbsd.org/cgi-bin/man.cgi?query=sosplice
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With