http://www.perlmonks.org?node_id=1155129


in reply to Re^2: Help me beat NodeJS (sleep)
in thread Help me beat NodeJS

Read http://search.cpan.org/~yanick/Parallel-ForkManager-1.17/lib/Parallel/ForkManager.pm#BLOCKING_CALLS and then try this to see if it helps:

#!/usr/local/bin/perl use strict; use warnings; use Parallel::ForkManager; my $pm = new Parallel::ForkManager(24); $pm->set_waitpid_blocking_sleep(0); ...

Replies are listed 'Best First'.
Re^4: Help me beat NodeJS (sleep)
by rickyw59 (Novice) on Feb 12, 2016 at 22:00 UTC

    Thanks for the help, I was able to shave 15 seconds off my perl script with both suggestions.