Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Help me beat NodeJS (sleep)

by Mr. Muskrat (Canon)
on Feb 12, 2016 at 21:02 UTC ( #1155129=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1155129]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-06-23 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?