in reply to RE: RE: RE: Descending through directories
in thread Getting a List of Files Via Glob

Hello t0mas !

It always amazes me at which places I find users of eConsole - never would I have thought to find a user on perlmonks :) !

Thanks for doing these tests - I didn't even know there was a Benchmark module ! What amazes me is, that the method of reading a directory twice (as done in t1 and t2) is faster than reading it once and checking for file/directory afterwards - you never stop learning I guess ... I will run these tests on my machine (a lowly P-100 running NT 4) and maybe on a Linux machine as well to get a more complete view of the behaviour :)

  • Comment on RE: RE: RE: RE: Descending through directories

Replies are listed 'Best First'.
RE: RE: RE: RE: RE: Descending through directories
by t0mas (Priest) on Jun 02, 2000 at 10:51 UTC
    Hi Corion.

    The same thing amazes me. I guess that doing a regexp on all rows at once is faster than doing it on every $entry. I don't know how Perl handles this stuff internaly.
    Maybe it recomplies the regexp every time it uses it or something.

    Pleas do run the test. I would like to see if the results you get is along the same line as the ones I got.

    And about eConsole I would like to say - Transparency Rules...

    /brother t0mas