Giter VIP home page Giter VIP logo

Comments (4)

ogxd avatar ogxd commented on June 15, 2024 1

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.

Dherse avatar Dherse commented on June 15, 2024 1

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.

ogxd avatar ogxd commented on June 15, 2024 1

My bad, issue is still open, I only tackled the quality bench part for now

from gxhash.

ogxd avatar ogxd commented on June 15, 2024 1

Fixed and published in v2.3.1 πŸŽ‰

from gxhash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.