Code Monkey home page Code Monkey logo

Comments (2)

Lolliedieb avatar Lolliedieb commented on July 28, 2024 2

There indeed was a discrepancy between the cpu implementation and the first iteration of the pdf. The reason is with the original proposal: when the phase with the dag element chasing starts the hash values get replicated from bytes 0..63 to 64..127. Therefore the uint32_t at [0..3] and [64..67] are equal and that leads to a kind of optimization that then gives about 1% higher hashrate, because one needs to fetch the element only ones. But only people who see it can use it and also it makes the code not nice to read, because to use the trick one needs to manually pull out the first loop iteration out of the loop.

Because I did not like this, I decided to go for bytes [0..3], [16..19] and [32..35] instead. The most recent version of the document has this change amended. I will make sure it gets uploaded as soon as possible.

from fish-hash.

danield9tqh avatar danield9tqh commented on July 28, 2024

Thank you @Grumpy-Dwarf. At first glance this does seem like a discrepancy between the paper and implementation. We'll look into it 🙏🏻

from fish-hash.

Related Issues (4)

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.