-
-
Notifications
You must be signed in to change notification settings - Fork 59
perf: tiny improvement in scrypt #122
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
Conversation
02e45c7 to
aff56ff
Compare
aff56ff to
15ee761
Compare
|
make sure to add a brief code comment describing why this works |
|
also, did you check safari? |
|
@paulmillr I see similar 4-5% improvement on WebKit (in playwright on mac) |
|
Approximate:
Raw dataNode.js, main: Node.js, pr: Chromium, main: Chromium, pr: WebKit, main: WebKit, pr: Firefox, main Firefox, pr: jsc, main: jsc, pr: |
|
thanks |
I see an ~4% improvement from not using
% Ninside loop over N (and casting to int32)N is always a power of two, as checked above