Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: require sugesstions for writing a perl script

by roboticus (Chancellor)
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
Replies are listed 'Best First'.
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 chanting in the Monastery: (9)
As of 2015-07-08 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls