Skip to content
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

CPU usage for routine cjose_jws_verify #118

Open
vtotad opened this issue Aug 27, 2021 · 1 comment
Open

CPU usage for routine cjose_jws_verify #118

vtotad opened this issue Aug 27, 2021 · 1 comment

Comments

@vtotad
Copy link

vtotad commented Aug 27, 2021

When the I am using ECDSA/RSA public key to verify the token its taking more time compare to secret key.
Is there any way I can improve the performance.
My application is single threaded signal based application and this routine is reducing the performance from 9000 TPS to 1000TPS.

Regards
Veeranna

@veselov
Copy link
Contributor

veselov commented Aug 27, 2021

RSA in general is quite slow. I'd recommend you switch to using a symmetric algorithm if you want performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants