lhotari opened a new issue #10652:
URL: https://github.com/apache/pulsar/issues/10652


   **Is your enhancement request related to a problem? Please describe.**
   
   The performance of `AuthenticationProviderToken.authenticateToken` is bad. 
It seems that the JWT parsing classes get loaded for each call
   
   This shows up in the allocation flame graph:
   
![image](https://user-images.githubusercontent.com/66864/118953740-c43b7b00-b965-11eb-80ac-de446335a0f7.png)
   
   **Describe the solution you'd like**
   
   Optimize the performance so that the parser is cached and isn't instantiated 
for each call.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to