mpdavis / python-jose

A JOSE implementation in Python
MIT License
1.55k stars 238 forks source link

Increase in the duration of `jwt.encode` on version upgrade (3.0.1 -> 3.3.0) #343

Open Tamar-Shemesh opened 9 months ago

Tamar-Shemesh commented 9 months ago

Hi, I'm using jwt.encode with algorithm RS256 on my api, and since upgrading the dependencies I've noticed an increase in the call duration of jwt.encode The duration is used to be around ~0.1 sec on average, and has increased to ~0.8 sec.

My old dependencies:

my new dependencies:

I'm not sure if the issue is at cryptography or at jose, since jose is dependent on cryptography. I could not find anything in the change log that stood out as a cause for this, is this the expected behavior of the latest version? Any ideas on what is the cause for this change?