[issue11406] There is no os.listdir() equivalent returning generator instead of list
Antoine Pitrou
report at bugs.python.org
Sat Mar 5 18:11:39 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
A generator listdir() geared towards performance should probably be able to work in batches, e.g. read 100 entries at once and buffer them in some internal storage (that might mean use readdir_r()). Bonus points if it doesn't release the GIL around each individual entry, but also batches that.
----------
nosy: +neologix, pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11406>
_______________________________________
More information about the Python-bugs-list
mailing list