Open jianshu93 opened 3 weeks ago
Hi, I just knew that ahash is fast so I used it.
I don't think there will be much more difference to switch to another hash crate. But fixed seed must be used to keep the result stable.
Hi @sundy-li,
Yes the seed must be fixed:
use xxh3;
/// Fixed seed for xxHash
const SEED: u64 = 0x1A2B3C4D5E6F7856_u64;
pub fn add_object
In the case for speed, xxh3 in Rust is neon/sse or AVX2 supported and should be much faster according to this benchmark here (although it was in C++): https://xxhash.com/doc/v0.8.2/index.html
Not sure whehter it is worthwhile to add it.
Thanks,
Jianshu
We can support it with feature gate I think.
But the default hash must be ahash to keep compatible wth before.
Can you submit a pr to support this ?
Hi Simple HLL team,
Is there a reason why ahash was used (I know ahash is fast and CoS attack resistant) but not xxh3 (rust version of xxhash) or wyhash-rs.
Thanks,
Jianshu