You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Related Issues
Closes#921
## Detailed Changes
Replace the hash algorithm from `DefaultHasher` to `ahash` for better
performance in partition lock.
## Test Plan
Time cost to compute hash on a 10-char string:
- DefaultHash: 10: 33.6364 ns
- ahash: 10: 19.0412 ns
- murmur3: 10: 33.0394 ns
Describe This Problem
We now use
DefaultHasher
inside partition lock, maybe we can change to a different Hasher based on murmur3 to improve perf.Proposal
https://github.com/CeresDB/ceresdb/blob/27267b55faf1bce3c263b49d2fb61bcd5ce55c00/common_types/src/hash.rs#L7
Additional Context
It's better to do a simple benchmark about those Hasher.
The text was updated successfully, but these errors were encountered: