Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 cooling their heels in the Monastery: (15)
As of 2014-10-01 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (29 votes), past polls