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?