Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: randomising file order returned by File::Find

by JavaFan (Canon)
on Mar 01, 2011 at 13:03 UTC ( #890749=note: print w/ replies, xml ) Need Help??


in reply to randomising file order returned by File::Find

What I would do: open 100+ files for writing. Find your files using File::Find. Write them to the 100 files in a round robin way (that way, you don't need to store all files in a huge list in memory). Close the files. Now start your jobs, each taking a different file containing file names to process as argument.


Comment on Re: randomising file order returned by File::Find
Re^2: randomising file order returned by File::Find
by salva (Monsignor) on Mar 01, 2011 at 13:12 UTC
    a list of filenames with thousands of entries is not huge anymore!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-09-21 13:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (171 votes), past polls