Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Hashing Strings and Pointers – Avoiding Common Pitfalls | Better HN
Hashing Strings and Pointers – Avoiding Common Pitfalls
(opens in new tab)
(jfdube.wordpress.com)
10 points
DanielH
14y ago
2 comments
Share
2 comments
default
newest
oldest
gallamine
14y 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
14y 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.
j
/
k
navigate · click thread line to collapse