Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Memory overhead of blessed hashes

by LanX (Saint)
on Feb 11, 2021 at 03:14 UTC ( [id://11128213]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Memory overhead of blessed hashes
in thread Memory overhead of blessed hashes

> If the hash table is large enough, and accesses do not result in scanning the entire table, portions of the hash table can be swapped out by the OS, even if other parts of the table are held in memory due to frequent access.

Well in theory, but if it comes to hashes that's pretty unlikely.

If one part of a hash is much more frequently accessed than another one, then the hashing function can't be very good.

Or it's always only the same key. :)

Anyway I once had stunning results after transforming a giant hash into a two tier HoH and letting the algorithm concentrating on always a very small group of second tier hashes.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^4: Memory overhead of blessed hashes

Log In?
Username:
Password:

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

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

    No recent polls found