-
Notifications
You must be signed in to change notification settings - Fork 11
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
Multithreaded key/exit message generation #40
Comments
The multiprocessing module should be the basis for CPU-bound multithreaded in Python: https://docs.python.org/3/library/multiprocessing.html |
Some initial results from this improvement. On my modest 8 cores/16 threads CPU, the full process (creation, deposit and verification) of creating 100 keys for mainnet requires 28 seconds with the multiprocess path instead of 4 minutes and 11 seconds without it. |
Another test with 1000 keys took 4 minutes and 29 seconds. It seems to scale linearly. |
I did a 1000 key generation and got 27.6 minutes with scrypt and 16 minutes with pbkdf2 for the full process. |
It seems like there is some kind of race issue after adding multiprocess support in our
This needs further test and improvements. |
Forwarded from
As suggested by Preston, an investigation into building a multithreaded solution for generating keys along with exit messages could drastically improve performance when working with large quantities.
The text was updated successfully, but these errors were encountered: