Gary Russell opened SPR-17319 and commented
Currently, the validate()
method parses the parameter annotations on every call.
It should be possible to cache the results and only parse on the first call.
Affects: 5.1 GA
Comment From: spring-projects-issues
Juergen Hoeller commented
This applies to several method argument resolvers in the web space as well. A consistent caching strategy for validation metadata across all of them sounds worthwhile.
Comment From: jhoeller
A recent related change #26787 - reusing this ValidationAnnotationUtils
should go along nicely here.