On Sun, 9 Jan 2011 11:17:40 -0800 Guido van Rossum <gu...@python.org> wrote: > Isn't that just shutil.copyfileobj()?
copyfileobj() still uses an user-space buffer (the Python bytes object used in the loop). The advantage of sendfile() is to bypass user-space logic and do the transfer entirely in kernel. How much it allows to gain *in practice* on a modern capable OS such as Linux I don't know. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com