-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faster Map for Buffer keys #172
Comments
@lemire thoughts? |
Can we beat it with native bindings? |
The benchmarks should include in the cost of hashing the strings, shouldn't then? It is interesting that your How is Map implemented currently? |
Just trying to give javascript implementation every advantage.
Probably some kind of hash table with open addressing. |
A bit of a challenge for those interested. Is it possible to do a javascript/wasm/native implementation of
Map
that supportsBuffer
keys and is faster thanMap
+Buffer.toString
.Here is my initial failing experiment:
Note how I even try to give an advantage to
BufferMap
by moving the overhead of hashing outside of the benchmark.The text was updated successfully, but these errors were encountered: