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; }
In reply to converting from process to threads by FromTheMotherland
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |