A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-January/107353.html below:

[Python-Dev] Add sendfile() to core?

[Python-Dev] Add sendfile() to core? [Python-Dev] Add sendfile() to core?Antoine Pitrou solipsis at pitrou.net
Sun Jan 9 21:31:12 CET 2011
On Sun, 9 Jan 2011 11:17:40 -0800
Guido van Rossum <guido at 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.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4