-
-
Notifications
You must be signed in to change notification settings - Fork 922
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
OpenSSL::PKCS5.pbkdf2_hmac_sha1 slowness #1073
Comments
A quick profile shows this is a performance issue in krypt. JRuby uses krypt to implement pkcs5:
We probably should raise this with the krypt folks like @emboss, @abstractj, and @vipulnsward. It appears that pbkdf2 is implemented in pure Ruby, so there's room to improve. |
@mauricioszabo @headius Started tracking at krypt/krypt#40 |
+1 |
krypt master seems to be significantly faster already, so maybe we just need a release + incorporation into JRuby. |
Hi guys, I've already did the codebase synchronization (krypt/krypt#43) and I'm testing atm against JRuby 1.7 branch. I'm also coordinating Krypt 0.0.2 release on the next (17/02) Monday, @vipulnsward will help double checking that PR In addition, after Krypt release I think we can remove this folder https://github.com/jruby/jruby/tree/jruby-1_7/lib/ruby/shared/krypt and add the released gem as dependency. Am I wrong? Let me know if the date doesn't work for you. |
This performance issue is still present in JRuby 1.7.16. |
since jruby-openssl 0.9.6 |
OpenSSL::PKCS5.pbkdf2_hmac_sha1 is about 10x slower than Ruby 1.9's version:
The text was updated successfully, but these errors were encountered: