Closed
Description
Victor Bronstein opened SPR-12536 and commented
In commit 57eedf3 Juergen Hoeller has simplified the hashCode
function of this class to use the method only and ignore the targetClass
field. This causes a performance degradation because all methods inherited from java.lang.Object
map to the same hash (thus falling into the same bucket) but return false when compared (targetClass
differs). Therefore the price of getting a value from the attributeCache
rises considerably which given the enormous amount of calls to getTransactionAttribute
creates a performance degradation.
Affects: 3.2.7, 4.1.3
Issue Links:
- better method identification in AnnotationTransactionAttributeSource logging [SPR-11267] #15892 better method identification in AnnotationTransactionAttributeSource logging