Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider caching PayloadArgumentResolver MethodParameter parsing [SPR-17319] #21852

Open
spring-issuemaster opened this issue Oct 1, 2018 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Oct 1, 2018

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

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Oct 12, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.