Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

> I don't recall the subtle differences between sendfile() and splice().

Basically, splice() is specialized for pipes:


splice() only works if one of the file descriptors refer to a pipe. So you can 
use for e.g. socket-to-pipe or pipe-to-file without copying the data into 
userspace. But you can't do file-to-file copies with it.

sendfile() only works if the source file descriptor refers to something that 
can be mmap()ed (i.e. mostly normal files) and before 2.6.33 the destination 
must be a socket.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41625>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to