Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Fast data structure..!!!

by kyle (Abbot)
on Apr 15, 2008 at 15:26 UTC ( #680538=note: print w/replies, xml ) Need Help??


in reply to Fast data structure..!!!

If you really are storing numerical data with numerical keys, an array might serve you better than a hash.

Have you tried profiling your code to make sure that this really is the part that needs to be optimized? I find it hard to believe that in any useful application, storage and retrieval in RAM is the bottleneck.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://680538]
help
Chatterbox?
[stevieb]: finally, my MCP41010 digital potentiometers have arrived! This will be my first crack at writing C code to maniuplate hardware directly by reading the datasheet only (no code reviews before starting)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-01-19 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (172 votes). Check out past polls.