Skip to content

Cache the result of JsonProvider.provider() #485

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

Merged
merged 1 commit into from
Jan 16, 2023
Merged

Conversation

swallez
Copy link
Member

@swallez swallez commented Jan 16, 2023

Since the result of JsonProvider.provider() is based on the classpath hierarchy, it can be cached. And actually should, as indicated in the javadoc for this method.

Fixes #479, will be included in the next 8.6 and 7.17 patch releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JsonProvider.provider method triggers Class loading too often and thus increases CPU usage and final latency
1 participant