paseto-toolkit / jpaseto

A library for creating and parsing Paseto in Java
Apache License 2.0
65 stars 15 forks source link

performance optimization #165

Closed martianoff closed 1 year ago

martianoff commented 1 year ago

Current implementation invokes class loading on each token extraction/generation. Which leads to thread locks and poor performance on high scale.

paseto builder: Improves performance by separating token builder and paseto builder, so paseto builder can be build in advance, and then reused for each token generation paseto parser : Boots crypto providers in advance and passes them to parser explicitly

bdemers commented 1 year ago

@maksimru did you mean to close this?

martianoff commented 1 year ago

@bdemers let's close for now, I made a pull request too early

martianoff commented 1 year ago

I will make another one later :)

bdemers commented 1 year ago

Sounds good!