-
Notifications
You must be signed in to change notification settings - Fork 272
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
Huge performance boost by reducing operations with arrays #102
base: master
Are you sure you want to change the base?
Conversation
Last commit brings another 5% performance boost. I did some tests with changes like #64, but i didn't notice any speed up. |
Hello, this is a big improvement ! I tested it on production and it worked perfectly. Thank you very much ! |
Works 1.8x faster for me now. Amazing! |
The docs need to be updated, as it now requires things to be Uint8Arrays, but can you compare against the |
(the |
(also note that segment size is now provided in bit-width; only byte-aligned segment sizes are currently supported, but that will change in the future) |
But current version already work only with Although I should use |
Hey, any news here? |
Is that compared to the typescript branch? It’s been used in production for some time now and should be moved out of beta and made latest. Thanks for the bump to look back into this. |
Current PR is based on main js branch. But it should be easy to convert it to typescript. |
I think I can do it when I will have some free time |
I’ll try getting the TypeScript branch merged this week. And put together some quick performance profiling. |
Thank you! |
uhm, is this branch mantained :) |
Hi.
Script works about 2.2 times faster, If replace arrays ("a" and "t") in ecrypt/decrypt with int32 numbers.
Another 5% speed boost if delete convertToInt32 from this functions.
I performed some tests with 1000 runs of encryption 1MB data: