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

[perf] cache BV Validator instance #1119

Closed
tandraschko opened this issue Feb 8, 2016 · 0 comments
Closed

[perf] cache BV Validator instance #1119

tandraschko opened this issue Feb 8, 2016 · 0 comments
Assignees
Labels
enhancement Additional functionality to current component
Milestone

Comments

@tandraschko
Copy link
Member

Currently we create new validator for each property in BeanValidationMetadataExtractor and BeanValidationMetadataMapper via .getValidatorFactory().getValidator();

The problem is that getValidator always creates a new one - this leads to bad performance as e.g. bval implemented the caches on Validator level.

@tandraschko tandraschko added the enhancement Additional functionality to current component label Feb 8, 2016
@tandraschko tandraschko added this to the 6.0 milestone Feb 8, 2016
@tandraschko tandraschko self-assigned this Feb 8, 2016
tandraschko added a commit that referenced this issue Feb 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additional functionality to current component
Projects
None yet
Development

No branches or pull requests

1 participant