Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would you please point out the difference between your algorithm and the official one? #3

Open
fazio-bai opened this issue Dec 4, 2017 · 1 comment

Comments

@fazio-bai
Copy link

fazio-bai commented Dec 4, 2017

I use your algorithm to achieve a mining program,but could not pass the check of zcashd. Would you please point out the difference between your algorithm and the official one? Thank you in advance.

@aabc
Copy link
Owner

aabc commented Dec 4, 2017

My code is already year old, while official one is evolved, so by now it could be more optimized than mine. basicSolver.c is C port of official algo of year ago, while basicSolver-opt.c is optimized version of that version. You could diff -u basicSolver.c basicSolver-opt.c to see the difference. Basically, indices intersection filter is optimized by using sorted arrays instead of O(N^2) loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants