Author serhiy.storchaka
Recipients Arfrever, larry, neologix, pitrou, rosslagerwall, serhiy.storchaka
Date 2012-10-17.13:20:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350480059.0.0.198409807734.issue15200@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-10-17 13:20:59serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, larry, Arfrever, neologix, rosslagerwall
2012-10-17 13:20:58serhiy.storchakasetmessageid: <1350480059.0.0.198409807734.issue15200@psf.upfronthosting.co.za>
2012-10-17 13:20:58serhiy.storchakalinkissue15200 messages
2012-10-17 13:20:58serhiy.storchakacreate