Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 743ddea

Browse files
committed
Fill in a few more benchmarks in README.rst.
Release scandir version 1.0.
1 parent f31073a commit 743ddea

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

README.rst

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,14 @@ arguments::
7070

7171
System version Python version Times as fast
7272
-----------------------------------------------------
73-
Windows 7 64-bit 2.7.7 64-bit TODO
74-
Windows 7 64-bit SSD 2.7.7 64-bit 23.2
73+
Windows 7 64-bit 2.7.7 64-bit 10.4
74+
Windows 7 64-bit SSD 2.7.7 64-bit 10.3
7575
Windows 7 64-bit NFS 2.7.6 64-bit TODO
76-
Windows 7 64-bit 3.4.1 64-bit TODO
76+
Windows 7 64-bit SSD 3.4.1 64-bit 9.9
77+
Windows 7 64-bit SSD 3.5.0 64-bit 9.5
7778

78-
CentOS 6.5 64-bit 2.7.6 64-bit TODO
79-
Ubuntu 12.04 32-bit 2.7.3 32-bit TODO
80-
81-
Mac OS X 10.9.3 2.7.5 64-bit TODO
79+
CentOS 6.2 64-bit 2.6.6 64-bit 3.9
80+
Ubuntu 14.04 64-bit 2.7.6 64-bit 5.8
8281

8382
All of the above tests were done using the fast C version of scandir
8483
(source code in `_scandir.c`).
@@ -87,14 +86,6 @@ Note that the gains are less than the above on smaller directories and greater
8786
on larger directories. This is why ``benchmark.py`` creates a test directory
8887
tree with a standardized size.
8988

90-
TODO: update --
91-
Another quick benchmark I've done (on Windows 7 64-bit) is running Eli
92-
Bendersky's `pss <https://github.com/eliben/pss>`_ source code searching tool
93-
across a fairly large code tree (4938 files, 598 dirs, 200 MB). Using pss out
94-
of the box with ``os.walk()`` on a not-found string takes 0.91 seconds. But
95-
after monkey-patching in ``scandir.walk()`` it takes only 0.34 seconds -- 2.7
96-
times as fast.
97-
9889

9990
The API
10091
-------

scandir.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
1515
scandir is released under the new BSD 3-clause license. See
1616
LICENSE.txt for the full license text.
17-
18-
TODO: make it work on Python 2.6 if easy enough
19-
TODO: release scandir version 1.0
20-
TODO: update benhoyt.com links
2117
"""
2218

2319
from __future__ import division
@@ -45,7 +41,7 @@
4541
warnings.warn("scandir can't find the compiled _scandir C module "
4642
"or ctypes, using slow generic fallback")
4743

48-
__version__ = '0.9'
44+
__version__ = '1.0'
4945
__all__ = ['scandir', 'walk']
5046

5147
# Windows FILE_ATTRIBUTE constants for interpreting the

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"(such as type and stat information).\n"
3131
"\n"
3232
"This module also includes a version of os.walk() that uses scandir() "
33-
"to speed it up significantly.",
33+
"to speed it up significantly.\n"
34+
"\n"
35+
"NOTE: If you're using Python version 3.5+, os.scandir() and the speed "
36+
"improvements to os.walk() are already available in the standard library.",
3437
py_modules=['scandir'],
3538
ext_modules=[Extension('_scandir', ['_scandir.c'])],
3639
classifiers=[

0 commit comments

Comments
 (0)