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

Skip transaction/caching metadata retrieval for java.lang.Object methods [SPR-15296] #19861

spring-projects-issues opened this issue Feb 28, 2017 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Feb 28, 2017

Juergen Hoeller opened SPR-15296 and commented

Our AbstractFallbackTransactionAttributeSource / AbstractFallbackCacheOperationSource always goes through the entire metadata retrieval phase for any method it encounters, building a cache key, checking the cache etc, and caching null placeholders for no annotation found. This is a waste for methods on java.lang.Object, both efficiency-wise and in terms of holding cache entries for those. Let's back out immediately for those methods, not even creating a cache key.

Affects: 4.3.6, 5.0 M5

Referenced from: commits d4a1b59, d69fb06

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

Successfully merging a pull request may close this issue.

None yet
2 participants