Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2021-04-14 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?