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

[CLOSED] verifying chunks is very slow #128

Closed
feross opened this issue Sep 21, 2014 · 2 comments
Closed

[CLOSED] verifying chunks is very slow #128

feross opened this issue Sep 21, 2014 · 2 comments

Comments

@feross
Copy link
Member

@feross feross commented Sep 21, 2014

Issue by vikstrous
Saturday Jun 14, 2014 at 01:45 GMT
Originally opened as https://github.com/feross/bittorrent-client/issues/32


I think this is because of the use of Rusha. Why not just use the native crypto library? Rusha can't possibly be faster in node.js right? I looked at Rusha's github repo and they don't have any benchmarks comparing against the crypto library.

@feross

This comment has been minimized.

Copy link
Member Author

@feross feross commented Sep 21, 2014

Comment by feross
Wednesday Jul 02, 2014 at 22:28 GMT


@vikstrous You're correct. No need to use rusha. We'll just use the built-in crypto library which is likely fastest in node. I just changed out all uses of Rusha in parse-torrent, bittorrent-dht, ut_metadata, and this module to use crypto.

For the modules that run in the browser, like parse-torrent, I might selectively include rusha if the shim that browserify uses isn't fast enough.

@feross

This comment has been minimized.

Copy link
Member Author

@feross feross commented Sep 21, 2014

Comment by feross
Wednesday Jul 02, 2014 at 22:28 GMT


Fixed in https://github.com/feross/bittorrent-client/commit/fcdf1f229d0d1f97964e8a057e59a1eb23f8c612 and published as 0.3.2.

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.