Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Optimizing with Caching vs. Parallelizing (MCE::Map) (Updated)

by 1nickt (Canon)
on Apr 06, 2020 at 18:49 UTC ( [id://11115141]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings; use strict; use feature 'say';
    use MCE::Util;
    ...
    }, 1, 1e6;
    
    say "@$_" for reverse +(sort { $b->[1] <=> $a->[1] } @sizes)[0..19];
    
  2. or download this
    $ time perl ch-map.pl
    922525 445
    ...
    real    0m4.843s
    user    0m47.423s
    sys    0m0.265s
    
  3. or download this
    time perl ch-flow.pl
    
    ...
    real    0m4.661s
    user    0m47.057s
    sys    0m0.255s
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-18 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found