-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Lazy cache provider initialization [SPR-17646] #22175
Comments
Stéphane Nicoll commented
Just a note that several things may go wrong (configuration file not found, configuration invalid, network topology that has to be validated on startup) so whatever we do here should be opt-in. It would be nice though if we wouldn't have to do that for every single component that we optimize this way |
Some additional data point here https://github.com/scratches/spring-cache-bench |
For a start, #22420 covers the pointcut processing part: We are not traversing classes now if they are known to not declare the desired annotation type. This is implemented for our async, caching, and transaction annotations, ignoring |
On review, I'm not really seeing much potential in asynchronous cache provider bootstrapping. Caffeine starts very quickly, not worth doing anything asynchronously. And cache preloading is usually done through early triggering of certain From that perspective, I'll close this ticket in its provider initialization variant. Any further improvements in annotation discovery won't be specific to caching annotations and are therefore better off in a different ticket. |
Dave Syer opened SPR-17646 and commented
Several opportunities:
@Transactional
(and@Secured
etc.).Some analysis and benchmarks here: spring-attic/spring-init#5
Affects: 5.1.3
Reference URL: spring-attic/spring-init#5
The text was updated successfully, but these errors were encountered: