This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients benhoyt, gvanrossum, larry, serhiy.storchaka, vstinner
Date 2016-01-12.10:06:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452593208.93.0.070333152048.issue25995@psf.upfronthosting.co.za>
In-reply-to
Content
> But using FDs proportional to the tree depth seems reasonable to me.

This was the main reason for rejecting issue15200. May be we can allow this for globbing, but only explicitly enabled with special parameter or separate functions. The benefit for globbing is starting to yield results without internal caching. The benefit for os.walk() is smaller, because in any case it yields files and directories not one-by-one, but collected into lists.

> Is there a potential hybrid strategy, where for small directories we close
> the FD but for large directories we keep it open?

May be with more complicated code. I think this needs explicit close() method, so it can go only in 3.6. For now I think we have to commit one of my patches (the difference only stylistic).
History
Date User Action Args
2016-01-12 10:06:49serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, vstinner, larry, benhoyt
2016-01-12 10:06:48serhiy.storchakasetmessageid: <1452593208.93.0.070333152048.issue25995@psf.upfronthosting.co.za>
2016-01-12 10:06:48serhiy.storchakalinkissue25995 messages
2016-01-12 10:06:48serhiy.storchakacreate