Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Crash with ForkManager on Windowsby marioroy (Prior) |
on Sep 22, 2017 at 10:06 UTC ( [id://1199904]=note: print w/replies, xml ) | Need Help?? |
Update: Modified script. Completes in 1 second with Cygwin Perl v5.22.4 and less than 1 second on Unix. Update: Modified list of modules to pre-load. On the Windows platform, run with Perl v5.26 or later for best results. The following is a demonstration using MCE::Loop. The behaviour is similar to running a pool of workers. Workers request the manager process the next URL to process. The job_delay option gives each worker time to load any missing modules at runtime before another worker starts processing. The delay occurs one time by each worker.
Regards, Mario
In Section
Seekers of Perl Wisdom
|
|