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

Re: Hash references versus hashes: is there a performance hit?

by philcrow (Priest)
on Mar 06, 2007 at 20:18 UTC ( [id://603508]=note: print w/replies, xml ) Need Help??


in reply to Hash references versus hashes: is there a performance hit?

The real difference comes when you pass the hash to a sub. Then, large hashes are serialized as lists, while references are just a single scalar.

I'm not willing to guess what the performance of a simple lookup is. But, both of them have the hash the key which might be the dominant part of the process.

Phil

  • Comment on Re: Hash references versus hashes: is there a performance hit?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found