Hashing Strings and Pointers – Avoiding Common Pitfalls (jfdube.wordpress.com) 10 points by DanielH 15y ago ↗ HN
[–] gallamine 15y ago ↗ For my (and other's) education, can someone explain to me why you would want to hash a pointer? Google let me down. [–] ot 15y ago ↗ It is probably not a common use case, but in applications such as garbage collectors, interpreters, allocators, some kind of caches, etc... you may want to keep track of a set of pointers in a hash table. Hence you need a hash function.
[–] ot 15y ago ↗ It is probably not a common use case, but in applications such as garbage collectors, interpreters, allocators, some kind of caches, etc... you may want to keep track of a set of pointers in a hash table. Hence you need a hash function.
2 comments
[ 4.3 ms ] story [ 13.0 ms ] thread