eosjs icon indicating copy to clipboard operation
eosjs copied to clipboard

ecc takes way too much time

Open ghost opened this issue 7 years ago • 2 comments

I'm new to eosjs , trying to developing a dapp demo , basically just receive a request, get value from request body then send value into eos by using transact demo from documentation . and on eos side, nothing complicated ,simply saved .but I test that dapp by using webbench , it can only handle 5 request per second with cpu hits 100% . so I look into Flame Graphs , cpu basically consumed by several functions like recoverPubKey, calcPubKeyRecoveryParam , Signature.signHash , Signature.sign , which all in eosjs-ecc module. Am I doing something wrong ? I'm using eosjs 20.0.0-beta2 . Really need help , any help will do .Many thx.

ghost avatar Jan 15 '19 18:01 ghost

the same problem

anonymoustoken avatar Jan 17 '19 12:01 anonymoustoken

Yes. javascript-based signing algorithms are slow by nature.

tbfleming avatar Sep 20 '19 20:09 tbfleming