On Fri, 13 Feb 2015 11:07:03 +0100 Victor Stinner <victor.stin...@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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com