Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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

Replies are listed 'Best First'.
Re^2: randomising file order returned by File::Find
by salva (Abbot) 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-07-28 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (424 votes). Check out past polls.