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

Cache spring.factories loads [SPR-15509] #20068

spring-issuemaster opened this Issue May 3, 2017 · 1 comment


None yet
2 participants
Copy link

spring-issuemaster commented May 3, 2017

Phil Webb opened SPR-15509 and commented

Currently SpringFactoriesLoader reloads properties files on each call. Whilst this doesn't appear to be particularly expensive in terms of CPU, it does cause some garbage objects due to an 8K buffer that Properties creates each time.

We could cache the loaded properties to save repeated loading the same file.

Affects: 4.3.8


This comment has been minimized.

Copy link
Collaborator Author

spring-issuemaster commented May 3, 2017

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