Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: List of directory (3 ways) (Win32 glob slow)

by tye (Sage)
on Jan 17, 2006 at 21:31 UTC ( #523843=note: print w/replies, xml ) Need Help??


in reply to List of directory (3 ways)

As I recall, the default glob is unnecessarily slow on Win32 because it does stat a lot more than it needs to. And stat is unnecessarily slow on Win32 because it does some expensive things in order to fill in bits that are rarely used. If doing glob to a remote network share (at least), the slow-down can be quite dramatic (orders of magnitude).

I had an idea for using something like an environment variable to allow skipping the expensive parts of stat but I don't have it "swapped in" at the moment. But the over-use of stat by the default glob should just be fixed.

- tye        

  • Comment on Re: List of directory (3 ways) (Win32 glob slow)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2023-01-31 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?