Consider improvements to reduce allocations in validation filter logic #61222
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-validation
Issues related to model validation in minimal and controller-based APIs
Milestone
We want to reduce the number of allocations accumulated by the validation filter logic and make the implementation as pay-to-play as possible. When users are not leveraging the feature we should consider:
IValidatableInfo
instances for parameters that don't require themValidationContext
objects throughout the pipeline to avoid newing them up per handler argumentEndpointFilterDelegate
returned from the filter factoryValidatableTypeInfo
The text was updated successfully, but these errors were encountered: