Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Fast data structure..!!!

by moritz (Cardinal)
on Apr 15, 2008 at 15:26 UTC ( #680539=note: print w/replies, xml ) Need Help??


in reply to Fast data structure..!!!

If you use only continuous natural numbers as keys, it's (slightly) faster to use an array instead of a hash.

But why do you want to store that data? It's faster to compute them on the fly (if you don't access all of them, at least).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://680539]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2017-02-27 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (376 votes). Check out past polls.