[New-bugs-announce] [issue11406] There is no os.listdir() equivalent returning generator instead of list
Марк Коренберг
report at bugs.python.org
Sat Mar 5 11:17:58 CET 2011
New submission from Марк Коренберг <socketpair at gmail.com>:
Big dirs are really slow to read at once. If user wants to read items one by one like here:
--------------
for i in os.listdir()
use(i)
--------------
having generator will gain performance, as big directories often very fragmented on disk. Also, dir_cache in kernel used more effectively.
----------
components: Library (Lib)
messages: 130111
nosy: mmarkk
priority: normal
severity: normal
status: open
title: There is no os.listdir() equivalent returning generator instead of list
type: performance
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11406>
_______________________________________
More information about the New-bugs-announce
mailing list