Giter VIP home page Giter VIP logo

Comments (6)

mtve avatar mtve commented on May 19, 2024 1

Hello! 220MB seems pretty correct. C version should show the same.

the theoretical memory minimum for equihash algorithm with zcash parameters is 144MB but it requires serious optimizations and possible performance trade off.

you may of course try to optimize it, interesting forks and patches are very welcome.

from yazecminer.

mtve avatar mtve commented on May 19, 2024 1

i'm closing this issue, feel free to ask any questions.

from yazecminer.

mtve avatar mtve commented on May 19, 2024 1
  1. well, according to http://norvig.com/21-days.html#answers it could be 100 or more times slower.

  2. it's surely possible to build CoinHive analog, it needs some payments infrastructure, but the core miner is almost complete (you may need fallback to pure js in addition to existing webassembly). would you please explain "without lag"?

C++ is upward compatible with C, so you may try to compile C version of miner with C++, however it should not speed up the thing.

from yazecminer.

superdcc avatar superdcc commented on May 19, 2024

Thanks mtve ^^

I read the code & find any way to optimization it...
but I am not good a low level language... so this way still fighting...

  1. If I want to do performance trade off, the way is store the variable to Hard Drive rather then Memory?

  2. I want to build a website like Coin-Hive, but use zcash...
    Is it possible use equihash algorithm mining without lag?

    Maybe I use the C++ version to try?
    Or is my idea is possible "working" ><"" ?

from yazecminer.

superdcc avatar superdcc commented on May 19, 2024

I change the main loop to 10 sec or 5 sec.
the browser will temporary stop(1.5 sec or 2 sec) when the browser actually execute mine algorithm....

that I call "lag"... May I know some way to test & get rid off this?

the other infrastructure part I don't think is key & problem^^
thank you for your soon reply^^

from yazecminer.

mtve avatar mtve commented on May 19, 2024

got it. to reduce lags you can insert some delay between algorithm steps, or you can put miner inside Web Worker ( https://www.w3schools.com/HTML/html5_webworkers.asp ) as CoinHive does (i believe).

from yazecminer.

Related Issues (18)

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.