[ftputil] Making path.walk go faster.
Ido Abramovich
idoa01 at yahoo.com
Thu Dec 1 10:18:10 CET 2005
--- Stefan Schwarzer <sschwarzer at sschwarzer.net>
wrote:
> > you could lower this number
> > to only D if you remember the result of the stat
> > operation in listdir and use it in walk.
>
> Yes, the implementation of path.walk is possibly
> more a
> principal thing currently. I'm aware of the repeated
> "lookups" but haven't added caching so far, I must
> admit.
>
Timed caching would be great, and would make the whole
process faster.
> > I've done a small patch that adds this
> functionality
> > without changing anything else:
> > [patch snipped]
>
> Thanks a lot for your work. I'll look into it. If I
> use it
> or a derivation of it, you wouldn't mind to have the
> code
> included in an upcoming ftputil release, would you?
> :-)
Sure, go ahead :)
But remember, this is a 10 min hack - I've done the
minimum work needed to
scratch my personal itch, so I could finish the first
version of my program and move on to more pressing
matters.
A global timed caching system would do the same work
with a more, well, global effect.
Until such a system is installed (I think I'll look
into that on my spare time...) this would probably do
the trick.
Thanks again,
Ido.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the ftputil
mailing list