Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by marioroy (Parson)
on Apr 08, 2020 at 02:40 UTC ( #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
Node Status?
node history
Node Type: note [id://11115208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2020-10-22 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?