Author ncoghlan
Recipients eric.araujo, giampaolo.rodola, ncoghlan, neologix, pitrou, vstinner
Date 2013-01-08.01:55:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357610156.97.0.171054866653.issue13229@psf.upfronthosting.co.za>
In-reply-to
Content
The problem with the current walkdir implementation is that without a rich path object you end up making a lot of redundant system calls. Combined with the inherent overhead of nested generators, it just *feels* bad (even in situations where worrying about the speed is truly a case of premature optimisation)

The caching in pathlib should deal with the problem of redundant system calls, so rebasing walkdir on top of that would probably be a good idea (i.e. all walkdir APIs would produce pathlib paths, and implicit convert strings they encounter to paths).
History
Date User Action Args
2013-01-08 01:55:57ncoghlansetrecipients: + ncoghlan, pitrou, vstinner, giampaolo.rodola, eric.araujo, neologix
2013-01-08 01:55:56ncoghlansetmessageid: <1357610156.97.0.171054866653.issue13229@psf.upfronthosting.co.za>
2013-01-08 01:55:56ncoghlanlinkissue13229 messages
2013-01-08 01:55:55ncoghlancreate