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/2015-February/138219.html below:

[Python-Dev] PEP 471 (scandir): Poll to choose the implementation (full C or C+Python)

[Python-Dev] PEP 471 (scandir): Poll to choose the implementation (full C or C+Python) [Python-Dev] PEP 471 (scandir): Poll to choose the implementation (full C or C+Python)Antoine Pitrou solipsis at pitrou.net
Fri Feb 13 13:25:38 CET 2015
On Fri, 13 Feb 2015 11:07:03 +0100
Victor Stinner <victor.stinner at gmail.com> wrote:
> 
> * C implementation: scandir is at least 3.5x faster than listdir, up
> to 44.6x faster on Windows
> * C+Python implementation: scandir is not really faster than listdir,
> between 1.3x and 1.4x faster

So amusingly, the bottleneck is not so much the cost of system calls,
but the cost of Python wrappers around system calls.

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