[issue19240] iglob should try to use `readdir`

2017-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Use scandir() to speed up the glob module ___ Python tracker

[issue19240] iglob should try to use `readdir`

2017-02-07 Thread Ben Longbons
Ben Longbons added the comment: This is a duplicate of bug 25596, which is now fixed. -- nosy: +o11c ___ Python tracker ___

[issue19240] iglob should try to use `readdir`

2013-10-13 Thread Charles-François Natali
Charles-François Natali added the comment: Actually, it should probably be using a generator-based version of os.listdir(). See #11406. -- dependencies: +There is no os.listdir() equivalent returning generator instead of list nosy: +neologix ___

[issue19240] iglob should try to use `readdir`

2013-10-12 Thread Miki Tebeka
New submission from Miki Tebeka: Currently glob.iglob calls os.listdir internally. Which means that if there are many files in the directory - a big list of them is created in memory. iglob should try to use readdir and be a true iterator, not consuming a lot of memory. See one possible