Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by marioroy (Prior)
on Apr 26, 2020 at 07:46 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116071]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found