parse-server
parse-server copied to clipboard
bCrypt is very slow, how to solve
User Login api is very slow due to bCrypt. About 4 queries per sec on Amazon EC2 single core machine. Node prof tools shows that about 89% cpu cycles are used by bCrypt function "encipher". Any good solution to this?
bcrypt is slow by design
Maybe parse-server could offer some ENV_VARS to configure bcrypt?
Thats correct, this is by design. Tuning bcrypt might be a reasonable solution, but making it work with existing passwords would not be easy. It's not in our roadmap but we would welcome PRs!