Replies: 1 comment
|
I am not pretty sure about the "better performance" part. See https://github.com/Mister-Hope/bcrypt-ts/tree/text-encoder for code details. I agree that TextEncoder can be performant, but it's init process of In most use cases for bcrypt-ts for me, is to deal with passwords (tokens), which I am not expecting these things to have length greater than 32. The original approach is still much faster than Discussion about this is still welcomed, but I will not do any change until we align our opinions. Edited:
To deal with long texts I believe you shall use C++ bcrypt |
Uh oh!
There was an error while loading. Please reload this page.
You can rewrite
src/utf8.tsusing TextDecoder for better performance and robustness.All reactions