New submission from Марк Коренберг <socketp...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue11406> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com