-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve deserialization performance around validation and its tests (#…
…202) * Improve deserialization performance around validation and its tests The claims validation was done via deserializing into a Map, which implies allocations/deallocations. This was done even if the map was not used afterwards. This commit improves performance of the validation by never deserializing in a `Map`, and deserializing only when necessary, to a struct that typically only borrows from the original b64-decoded json string. The validation function interface change required update to the tests, which are also made easier to read by using the `serde_json::json!` macro. * unrelated: fix bench compilation
- Loading branch information
Showing
4 changed files
with
143 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.