Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Optimizing with Caching vs. Parallelizing (MCE::Map) (Better caching?)

by marioroy (Prior)
on Apr 08, 2020 at 02:40 UTC ( [id://11115208]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    say "@$_"
        for ( sort { $b->[1] <=> $a->[1] } @sizes )[ 0..19 ];
    
  2. or download this
    use strict;
    use warnings;
    ...
    say "@$_[ 1, 0 ]"
        for ( sort { $b->[0] <=> $a->[0] } @sizes )[ 0 .. 19 ];
    
  3. or download this
    max_workers => 1
      collatz_vr         3.617s    1.0x
    ...
      collatz_count_c1   0.112s    6.6x  Inline C
      collatz_count_c2   0.108s    5.8x  Inline C
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found