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 gvanrossum
Recipients gvanrossum
Date 2016-01-06.22:55:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452120927.04.0.31788168865.issue26032@psf.upfronthosting.co.za>
In-reply-to
Content
The globbing functionality in pathlib (Path.glob() and Path.rglob()) might benefit from using the new optimized os.scandir() interface. It currently just uses os.listdir(). The Path.iterdir() method might also benefit (though less so).

There's also a sideways connection with http://bugs.python.org/issue26031 (adding an optional stat cache) -- the cache could possibly keep the DirEntry objects and use their (hopefully cached) attributes. This is more speculative though (and what if the platform's DirEntry doesn't cache?)
History
Date User Action Args
2016-01-06 22:55:27gvanrossumsetrecipients: + gvanrossum
2016-01-06 22:55:27gvanrossumsetmessageid: <1452120927.04.0.31788168865.issue26032@psf.upfronthosting.co.za>
2016-01-06 22:55:26gvanrossumlinkissue26032 messages
2016-01-06 22:55:26gvanrossumcreate