Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by marioroy (Prior)
on Apr 07, 2020 at 00:48 UTC ( [id://11115148]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ diff choroba.pl 1nickt.pl
    8,9c8,11
    ...
    >         $n = $n % 2 ? 3 * $n + 1 : $n / 2;
    >         push @seq, $n;
    >     }
    
  2. or download this
    use warnings; use strict;
    use feature 'say';
    ...
    MCE::Flow->finish;
    
    say "@$_" for reverse +(sort { $b->[1] <=> $a->[1] } @sizes)[0..19];
    
  3. or download this
    use warnings; use strict;
    use feature 'say';
    ...
    MCE::Flow->finish;
    
    say "@$_" for reverse +(sort { $b->[1] <=> $a->[1] } @sizes)[0..19];
    
  4. or download this
    max_workers =>  1
      choroba  21.432 seconds
    ...
    max_workers => 32
      choroba   1.218 seconds
      1nickt    1.105 seconds
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found