Tar-Quaeron
New Member
- Reaction score
- 0
Does anyone know how much RAM a global hashtable takes up? Because if it's an array representing 2.1 billion (about the possible range of an integer) * 2.1 billion handles in a table, that's 4*10^18*4 bytes (because the hashtable would store a pointer to the handle in question, i.e. an integer?), i.e. A million terabytes? Yeah, so I guess there's a hashing function (wikipedia) which, from the value you give to the parent and child key assigns a particular index in the array?
I'm just worried, that as I get all excited about hashtables and start using them a lot, the map will take up a lot of memory while it's running.
I'm just worried, that as I get all excited about hashtables and start using them a lot, the map will take up a lot of memory while it's running.