Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: require sugesstions for writing a perl script

by roboticus (Canon)
on Mar 06, 2013 at 11:12 UTC ( #1021994=note: print w/ replies, xml ) Need Help??


in reply to require sugesstions for writing a perl script

lazydev:

I've not tried it, but you could probably use Parallel::ForkManager to control the number of jobs running at once. As the anonymous monk mentioned earlier, you don't want to run all 1000 at once. Instead keep a pool of XX running until you finish them all. Play around with the value of XX until you find the best time/resource tradeoff.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: require sugesstions for writing a perl script
Re^2: require sugesstions for writing a perl script
by topher (Scribe) on Mar 06, 2013 at 15:36 UTC

    Good suggestion. I've used Parallel::ForkManager, and it should indeed work very well for this case.

    Christopher Cashell

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-09-18 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (124 votes), past polls