FromTheMotherland has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way I can use threads instead? I look at my memory usage and every perl process is taking about 2% of cpu, 73mb of virtual memory, and 6-13 megs of real memory. I'm looking for some ways to optimize this pipeline. Any help will be appreciated!my $pmx=new Parallel::ForkManager(10); while(my $url=<URLFILE>) { $pmx->start and next; &download_url_via_lwp_or_mechanize; &parse_url; &write_results_to_file; $pmx->finish; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: converting from process to threads
by plobsing (Friar) on Jan 19, 2008 at 19:45 UTC | |
by FromTheMotherland (Novice) on Jan 19, 2008 at 23:32 UTC | |
by zentara (Cardinal) on Jan 20, 2008 at 15:44 UTC | |
|
Re: converting from process to threads
by pc88mxer (Vicar) on Jan 19, 2008 at 19:52 UTC | |
by FromTheMotherland (Novice) on Jan 19, 2008 at 23:35 UTC | |
|
Re: converting from process to threads
by BrowserUk (Patriarch) on Jan 20, 2008 at 09:45 UTC | |
|
Re: converting from process to threads
by kirillm (Friar) on Jan 21, 2008 at 08:28 UTC |