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

Antoine Pitrou solipsis at pitrou.net
Fri Feb 13 13:20:27 CET 2015


On Fri, 13 Feb 2015 13:27:04 +0200 Serhiy Storchaka <storchaka at gmail.com> wrote:

On 13.02.15 12:07, Victor Stinner wrote: > * C implementation: scandir is at least 3.5x faster than listdir, up > to 44.6x faster on Windows

Results on Windows was obtained in the becnhmark that doesn't drop disk caches and runs listdir before scandir.

Well, that's the point. The objective here is to speed up Python, not the hard drive.

Regards

Antoine.



More information about the Python-Dev mailing list