Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Perl Hashes, ever wonder about size/efficiency

Quote Reply
Perl Hashes, ever wonder about size/efficiency
I've always wondered about the efficiency of using perl hashes, since it's one of the reasons we actually use Perl <G>

I found this:

http://www.sidhe.org/...archives/000123.html

And the original blog post that was referenced in the message, about the overhead a perl hash uses, and how the overhead for small keys/values can really eat up memory far and above what you'd ever expect.

For GLinks, with relatively LARGE hashes, it's not as much of an issue, but if you were using large hashes of small data sets, a huge amount of "silent" waste can occur.

I thought it was interesting, from a programming and "what's really going on" point of view.


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.