Comments (4)
Hello @Dherse,
The "standard" hash function gxhash64(input: &[u8], seed: i64) -> u64
is backed by smasher tests which has permutation tests and more. However, the Hasher
is a different approach, and while it uses the core of the gxhash algorithm, it is not backed by smasher and is covered by very few tests regarding quality (only a few sanity checks).
Given that the rust's default Hasher seems to generate order-dependent hashes, I'd say that the fact that GxHasher
is currently order-independent is a bug (I easily reproduced).
Fixing this will only affect GxHasher
so I think it can be addressed as part of a hotfix version, I'll see what can be done. Also, some time must be put into adding a few more quality tests on this Hasher
side.
from gxhash.
Thank you, I am a large contributor to https://github.com/typst/typst and I am trying to see whether gxhash could replace Siphash 1-3 that we're currently using since it has so much higher performance hence #7 and this issue!
Anyway, looking forward to it π
from gxhash.
My bad, issue is still open, I only tackled the quality bench part for now
from gxhash.
Fixed and published in v2.3.1 π
from gxhash.
Related Issues (20)
- Use aligned loads in get_partial_safe HOT 3
- Couple issues in the paper HOT 2
- Functionality on stable HOT 5
- Make GxHasher DOS resistant
- Don't finalize in Hasher::write, but in finish instead HOT 2
- Possible seed and value recovery HOT 8
- Missing `std` compatibility traits on `GxHasher` and `GxBuildHasher` HOT 1
- How to use AVX2 only for hashmap/set, and use stable hash for hash128/64/32 HOT 12
- how to use AVX2 only for hashmap/set οΌand use stable hash for hash128
- Tracking: missing compatibility with `std::HashMap` & `std::HashSet` HOT 5
- Hybrid state gxhash HOT 12
- Major bug: out of bounds read for some input sizes HOT 1
- Primitives specialization for Hasher HOT 4
- cargo bench --no-fail-fast -F=avx2 failed HOT 9
- Latency benchmarks HOT 6
- Add fallback for platforms without AES acceleration
- Readme image link broken HOT 1
- error[E0432]: unresolved import `platform` HOT 13
- how many bytes use write() each time that are most efficient?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gxhash.