[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19240
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 implementation using ctypes at 
http://stackoverflow.com/questions/4403598/list-files-in-a-folder-as-a-stream-to-begin-process-immediately

--
components: Library (Lib)
messages: 199649
nosy: tebeka
priority: normal
severity: normal
status: open
title: iglob should try to use `readdir`
type: performance
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19240
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com