Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Execution hangs on File::Find

by jahero (Pilgrim)
on Dec 04, 2017 at 14:20 UTC ( [id://1204864]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Execution hangs on File::Find
in thread Execution hangs on File::Find

... and this is exactly why I am setting the ${^WIN32_SLOPPY_STAT} in my code. It leads to not openning the file on stat, which can lead to rather significant performance gain.

Replies are listed 'Best First'.
Re^6: Execution hangs on File::Find
by colox (Sexton) on Dec 04, 2017 at 19:56 UTC

    hi, but im also testing if the file timestamp is newer than the last execution time. removing stat would not serve that purpose right?

      I don't think this means you have to sacrifice stat. Let's see what docs has to say:

      If this variable is set to a true value, then stat() on Windows will not try to open the file. This means that the link count cannot be determined and file attributes may be out of date if additional hardlinks to the file exist. On the other hand, not opening the file is considerably faster, especially for files on network drives.
      See what I mean?

      I don't know what is stored on that shared drive. Does this seem to be a problem?

Log In?
Username:
Password:

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

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

    No recent polls found