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

PBKDF2Async updates too much and is very slow. #26

Closed
GoogleCodeExporter opened this issue Apr 28, 2016 · 1 comment
Closed

PBKDF2Async updates too much and is very slow. #26

GoogleCodeExporter opened this issue Apr 28, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Due to the way setTimeout forces the browser to wait at minimum 4 ms before 
resuming the computation it makes the async pbkdf2 very slow, taking a full 10 
seconds with 2000 iterations. I've added a loop forcing it to compute for at 
least 100ms before returning to the browser, this gives it speed without much 
browser lag:

while (i < iterations && ((new Date()).getTime() - start.getTime()) < 100)

I've attached a copy of the source for reference. 

Original issue reported on code.google.com by ultraman...@gmail.com on 21 Feb 2012 at 6:03

Attachments:

@GoogleCodeExporter
Copy link
Author

Fixed in r519 and released in v2.5.4.

Original comment by Jeff.Mott.OR on 30 May 2012 at 2:12

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant