Message173170
Timing of walk depends on how deep we dive into the directories.
$ ./python -m timeit -s "from os import walk" "for x in walk('/home/serhiy/py/1/2/3/4/5/6/7/8/9/cpython/'): pass"
10 loops, best of 3: 398 msec per loop
$ ./python -m timeit -s "from os import fwalk" "for x in fwalk('/home/serhiy/py/1/2/3/4/5/6/7/8/9/cpython/'): pass"
10 loops, best of 3: 249 msec per loop
Given the above mentioned objections (consuming a lot of file descriptors, OS/FS dependency, testing burden) I withdraw my patch and close the issue. Thanks all for discussion. |
|
Date |
User |
Action |
Args |
2012-10-17 13:20:59 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, larry, Arfrever, neologix, rosslagerwall |
2012-10-17 13:20:58 | serhiy.storchaka | set | messageid: <1350480059.0.0.198409807734.issue15200@psf.upfronthosting.co.za> |
2012-10-17 13:20:58 | serhiy.storchaka | link | issue15200 messages |
2012-10-17 13:20:58 | serhiy.storchaka | create | |
|