Re: folder size

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Olaf,

Thanks for that - haven't used filer.dll in years and had almost
forgotten it existed. I'll do some tests.

Cheers,

-Roger



"Olaf.Doschke" <b2xhZi5kb3NjaGtlQHNldG1pY3MuZGU@xxxxxxxxxxxxx> wrote in
message news:uQdNzSRzGHA.4452@xxxxxxxxxxxxxxxxxxxxxxx
Hi Roger,

Check out filer.dll (ole class "filer.fileutil"). I recently measured,
it's way faster in reading out the files including subfolders than a
recursion with ADIR().

eg a search on "*.mp3" within "C:\" and subfolders finished in
seconds(1-2 minutes), while I canceled the recursion approach,
that didn't return within 15 minutes.

I haven't done elaborate tests though, if eg there is some caching
effect and the routine running second will profit from that and
always be faster.

filer results in a files collection. It may sum up the size by itself,
or you just have to sum up each single files size.

Bye, Olaf.



.



Relevant Pages

  • Re: Simple recursive functions in Lisp
    ... you transfer control back to code that has already been run. ... recursion vs. iteration vs. tail-recursion debate. ... there is an implicit continuation argument that must be ... (loop for x in list sum x)) ...
    (comp.lang.lisp)
  • Re: Precedence of Logical Operators
    ... >> the sum of 1...n, because she didn't know that it was a correct ... I did the same thing with the fibonacci series when we were supposed to ... use recursion. ...
    (comp.lang.c)
  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... I got 79% on the test on Recursion, using C examples, at ... int example ... As a data structure, a call stack is most analogous to ... sum = sum + n; ...
    (comp.programming)
  • Re: Help with a recursive equation
    ... up with a general equation for the sum of all binary numbers having ... "n" digits with m 1's in them. ... This isn't a recursion. ... You haven't given a terminating condition, ...
    (sci.math)