Last Updated: February 25, 2016
· maligree

quote the man on sendfile

man sendfile

sendfile() copies data between one file descriptor and another. Because this copying is done within the kernel, sendfile() is more efficient than the combination of read(2) and write(2), which would require transferring data to and from user space.