The new model for Token Validation returns a TokenValidationResult that contains a list of a derived ValidationResult where each represents a particular validation. IssuerValidationResult, SignatureValidationResult, etc.
This could lead to a large number of objects that need to be GC'd for a service that performs a large number validation.
We can address this by developing a model were a ValidationResult is obtained from a pool, returned, reset and reused.
The new model for Token Validation returns a TokenValidationResult that contains a list of a derived ValidationResult where each represents a particular validation. IssuerValidationResult, SignatureValidationResult, etc.
This could lead to a large number of objects that need to be GC'd for a service that performs a large number validation.
We can address this by developing a model were a ValidationResult is obtained from a pool, returned, reset and reused.