Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by marioroy (Parson)
on Apr 26, 2020 at 07:46 UTC ( #11116071=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    9,12c9,12
    <  [    616 7532665]  # correct
    ...
    ---
    >  [    605 9533531]  # wrong
    
  2. or download this
    use strict;
    use warnings;
    ...
    say $result;
    say {*STDERR} "total time: ", time - $t;
    
  3. or download this
    use strict;
    use warnings;
    ...
    say $result;
    say {*STDERR} "total time: ", time - $t;
    
  4. or download this
    1e7:
        serial  total 15.272s, compute 14.674s   1 core
    ...
    1e8:
      parallel  total 11.779s, compute  5.631s  32 cores
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2021-01-26 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?