Chris Wellons personal blog

You Can't Always Hash Pointers in C

Occasionally I’ve needed to key a hash table with C pointers. I don’t care about the contents of the object itself — especially if it might change — just its pointer identity. For example, suppose I’m using null-terminated strings as keys and I know these strings will always be interned in a common table. These…
Points
155
HN comments
157
Submissions
2
Cited by
0 commenters

Software EngineeringSystems & Performance2016

On Hacker News

SubmittedTitle on HNPointsComments
May 31, 2016You Can't Always Hash Pointers in C by ingve15596
Sep 19, 2018You Can't Always Hash Pointers in C (2016) by ScottWRobinson7261

More from Chris Wellons

All 75 posts →

Related posts from the same era