Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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).

Comment on Re: Fast data structure..!!!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-11-30 12:41 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (770 votes), past polls