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

Litecoin: enable support for SSE2 instructions in scrypt via configure --enable-sse2 #362

Merged
merged 2 commits into from
Aug 8, 2017

Conversation

romanornr
Copy link

@romanornr romanornr commented Jul 25, 2017

SSE2 is missing for Litecoin.

Right now I have this implementation working for Viacoin.
https://github.com/viacoin/viacoin/tree/0.13-dev

Follow-up on my last pull request: #316

#316 (comment)
modified scrypt_test.ccp to only run either SSE2 or non-SSE2 hashing 10000 times. On my low power Intel Atom J2900 CPU the SSE2 version is over 2x faster (42 vs 18 seconds, just pasting one, the results are stable over multiple runs):

Running 1 test case...

*** No errors detected
41.942u 0.002s 0:42.06 99.7% 9063+838k 54+0io 532pf+0w

SSE2 enabled:
18.880u 0.008s 0:18.91 99.8% 9054+837k 2+0io 389pf+0w

To sum up:

  • Significant performance boost SSE2 (2x faster)
  • POW Validation is a bottleneck, with SSE2 it can speed up the client.

@thrasher-
Copy link
Member

ACK

@thrasher- thrasher- merged commit 975de25 into litecoin-project:master Aug 8, 2017
thrasher- pushed a commit to thrasher-/litecoin that referenced this pull request Aug 18, 2017
thrasher- pushed a commit to thrasher-/litecoin that referenced this pull request Aug 22, 2017
thrasher- pushed a commit that referenced this pull request Aug 30, 2017
thrasher- pushed a commit to thrasher-/litecoin that referenced this pull request Sep 12, 2017
thrasher- pushed a commit to thrasher-/litecoin that referenced this pull request Sep 20, 2017
thrasher- pushed a commit to thrasher-/litecoin that referenced this pull request Jan 19, 2018
thrasher- pushed a commit to thrasher-/litecoin that referenced this pull request Feb 27, 2018
thrasher- pushed a commit to thrasher-/litecoin that referenced this pull request Mar 15, 2018
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

Successfully merging this pull request may close these issues.

2 participants