Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: "Just use a hash": An overworked mantra?

by BrowserUk (Pope)
on Nov 16, 2011 at 21:49 UTC ( #938470=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    XS(XS_main_rand_ranged_value)
    {
    ...
        }
        XSRETURN(1);
    }
    
  2. or download this
    #! perl -slw
    use strict;
    ...
            Rate  hash array
    hash  3.88/s    --  -38%
    array 6.23/s   61%    --
    
  3. or download this
    perl 
    -nlE"++$h{ $_ } }{ say qq[$_ : $h{ $_ }] for sort{ $a <=> $b } keys %h
    +" 
    < theBigFileOfInts
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2015-07-02 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (34 votes), past polls