Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: perl hashes

by jrsimmon (Hermit)
on Jul 14, 2009 at 18:30 UTC ( #780016=note: print w/replies, xml ) Need Help??


in reply to perl hashes

Your performance is determined by the type of operations you're performing. If you are not scanning keys (ie, my @keys = keys(%bigHash); such that you are always looking up values with a previously known key (ie, my $value = $bigHash{$key};), then a hash maintains its performance quite well even when it is very large and, as stated early, memory/resource usage is your greatest concern.

That said, Benchmark can help you determine the performance of the hash at different sizes.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-08-18 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?