Thoughts on hashing optimizations
See original GitHub issueYour hasing function looks like the hashCode
algorhythm. That correct?
Hypothetically
Would you be willing to have any dependencies?
Would you be willing to have different dependencies for the npm/node.js
version?
murmurhash3
(pure javascript) is about 140% as fast ashashCode
.cityhash
(c++ node.js module) is about 280% as fast ashashCode
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Optimizing a Hashing Strategy - DZone
Overview. The strategy that's used for hashing keys can have a direct impact on the performance of a hashed collection such as a...
Read more >Optimizing Hashing Algorithms - LearnHowToProgram.com
A good hashing algorithm needs to evenly distribute key-value pairs into buckets, resulting in as few collisions as possible. We may end up...
Read more >Optimization Part III: Better Hash Tables - Colin's Notes
How about looking for more efficient implementations of standard data structures in libraries? Optimizing C++ Applications With Better Hash ...
Read more >A Study on the Optimization of Blockchain Hashing Algorithm ...
This paper proposes an optimization scheme of blockchain hashing algorithm based on PRCA.
Read more >How should I go about optimizing a hash table for a given ...
Show activity on this post. I would make sure that your key's hash to unique values. This will ensure that every lookup will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Ben,
I think your request sounds reasonable. Different use cases may need different hashing guarantees.
I will take a look at the PR soon.
Regards, Francis
On Mon, Nov 30, 2020 at 6:25 PM Benjamin DANIEL notifications@github.com wrote:
After some tweaks and a few more runs, it turns out the XOR version of the
djb2
algorithm provides better performance per collision. [UPDATE]hashCode
still performs better