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

Closed
spring-issuemaster opened this issue Feb 28, 2017 · 0 comments

Comments

@spring-issuemaster
Copy link
Collaborator

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
Projects
None yet
2 participants
You can’t perform that action at this time.