-
Notifications
You must be signed in to change notification settings - Fork 154
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
Slow key generation #29
Comments
if you're running with the but if you leave out this flag, things may take some tens of seconds. at least this is what i've noticed for delta chat. in general, creating a rsa-key seems to take some time, i was confused some time ago on that isseu as well (using openssl that time, see deltachat/deltachat-android#511 (comment) ) :) |
Thanks for the feedback! I can confirm that it is much faster in release mode. It should not be that slow in with debug symbols enabled though. Or is this a rust specific problem that debug bulids are much much slower? |
np
not sure about rust, but eg, e.g deltachat/deltachat-core#376 (comment) we encountered debug encryption being up to 20 times slower than release one - on c with openssl (not sure if this can be tweaked, we switched to rust then ;) |
I also ran into this problem. Turns out the Rust compiler is SUPER EFFICIENT when compiling a release. Generating a 2048 bit key in debug mode took arround 5 minutes, meanwhile in a release build it takes about 1 second. |
Closing, as this is expected behaviour |
Would be great to keep this open. Key generation still takes several seconds in release mode for me. Looks like it's at least an order of magnitude slower than that of openssh. I am sure there are ways to improve upon this. |
Hi all,
I have the following code snippet.
It sometimes takes about a second to execute, but most of the time it takes tens of seconds. Am I doing something wrong? Is there a different RNG that is faster?
Thanks!
The text was updated successfully, but these errors were encountered: