Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Win32 Recursive Directory Listing

by iakobski (Pilgrim)
on Apr 10, 2002 at 12:36 UTC ( [id://158007]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Win32 Recursive Directory Listing
in thread Win32 Recursive Directory Listing

There is an issue with File::Find (and hand-rolled solutions too) on win32 when working with mapped file systems. It will stat every file to determine whether it is a directory and needs to be recursed into. Each stat requires a server round-trip which can be slow.

If you call the DOS function you can do the whole thing in one hit. If you are certain the script will never be needed on a non-win32 system there is no issue with portability.

I was doing something similar a while back, and reduced the run time from several hours to under ten minutes.

-- iakobski

  • Comment on Re: Re: Re: Win32 Recursive Directory Listing

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://158007]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found