Advanced techniques to implement fast hash tables
attractivechaos.wordpress.com
Advanced techniques to implement fast hash tables
1–10 of 22 posts
Re: Advanced techniques to implement fast hash tables
#2Re: Advanced techniques to implement fast hash tables
#3Re: Advanced techniques to implement fast hash tables
#4Nit: You should implement quadratic probing with triangular numbers by addition for a slight speedup. I.e. x+= i, rather than x = ... × ...
Re: Advanced techniques to implement fast hash tables
#5Re: Advanced techniques to implement fast hash tables
#6Re: Advanced techniques to implement fast hash tables
#7I've been learning rust recently. As a learning exercise, I compared the robin-hood hashing of std::collections::HashMap in rust to his klib/khash he mentions in this article , and then tried various hash functions to try and match his performance:
https://github.com/gaberudy/hash_test
No dice, his hash table is smaller and faster.
My next step is to try and implement his data structure and hashing functions directly in rust and see if I can get it to near-C performance...
Re: Advanced techniques to implement fast hash tables
#8I love this stuff but how many of us really get to (have the privilege) to doing this kind of work?
Re: Advanced techniques to implement fast hash tables
#9Re: Advanced techniques to implement fast hash tables
#10Nit: You should implement quadratic probing with triangular numbers by addition for a slight speedup. I.e. x+= i, rather than x = ... × ...
Of course. Notable libraries implementing quadratic probing all use addition instead of multiplication. The example in the blog post is just for demonstration purpose.
What is the advantage of this?