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

Can the owner implement this? #134

Open
Wetitpig opened this issue Aug 3, 2017 · 2 comments
Open

Can the owner implement this? #134

Wetitpig opened this issue Aug 3, 2017 · 2 comments

Comments

@Wetitpig
Copy link

Wetitpig commented Aug 3, 2017

http://www.nicolascourtois.com/bitcoin/Optimising%20the%20SHA256%20Hashing%20Algorithm%20for%20Faster%20and%20More%20Efficient%20Bitcoin%20Mining_Rahul_Naik.pdf

Sorry because I can't write assembly: I only know C. Thanks!

@pooler
Copy link
Owner

pooler commented Aug 3, 2017

After briefly skimming the paper, I would say that most (if not all) of those optimizations are already present in cpuminer. Right now I don't have time to devote to this, but if you want to go over it in detail you can check the portable C implementation of sha256d_ms() in sha2.c. As you can see from the git history, this code is from March 2012, so it predates this thesis by more than one year.

@JayDDee
Copy link

JayDDee commented Oct 19, 2021

FYI, here's an optimization not mentioned in the thesis and I don't see it in cpuminer either. It can't be used it with HW SHA.
If looped it replaces a XOR with a MOV each round except the first, partially unrolled the MOV can be eliminated.

https://issueexplorer.com/issue/openwall/john/4727

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

4 participants
@pooler @JayDDee @Wetitpig and others