Huge performance boost by reducing operations with arrays#102
Huge performance boost by reducing operations with arrays#102NikitaCartes wants to merge 4 commits intoricmoo:masterfrom
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: