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

Re^3: Perl Program to efficiently process 500000 small files in a Directory (AIX)

by afoken (Canon)
on Mar 17, 2018 at 18:35 UTC ( #1211159=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl Program to efficiently process 500000 small files in a Directory (AIX)
in thread Perl Program to efficiently process 500000 small files in a Directory (AIX)

Can you tell me if Perl's "rename" is more efficient than "move"? As these files are on the same file system.

rename avoids spawning a new process to do the same syscall, so it should be faster and create less load.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re^3: Perl Program to efficiently process 500000 small files in a Directory (AIX)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2021-04-16 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?