Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Although Robin Hood hashing has good performance under high load, it needs to record the probe length in each bucket. This partly cancels its advantage especially for small keys. In my evaluation, Robin Hood hashing doesn't use less memory in comparison to others.

> Most hash table code makes excessive use of malloc/realloc or has power of two growth

Libraries based on open addressing only call malloc when there is not enough room. That is not "excessive". Also, if you know the maximum size before hand, many libraries allow you to preallocate buckets such that you never trigger rehashing in this case.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: