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

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

by vr (Curate)
on Apr 08, 2020 at 21:40 UTC ( #11115238=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Time::HiRes 'time';
    my $t = time;
    ...
    3.33010196685791
    8.4802930355072
    
  2. or download this
    _cache_collatz( $_ ) for 1 .. 1e6;
    say scalar %cache;
    ...
    2168611
    2168611
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2020-10-20 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?