Improve CacheOperation equals/hashCode implementation performance [SPR-13970] #18542
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Khaled Ayoubi opened SPR-13970 and commented
"CacheAspectSupport" tries to get a cached version of "CacheOperationMetadata" from "metadataCache" using "CacheOperationCacheKey" as a key
"CacheOperationCacheKey.equals" method calls "CacheOperation.equals" which calls "toString" which is pretty expensive, if I'm in large loop and hitting the cache, I can notice considerable degradation in performance
Affects: 4.2.4
Issue Links:
@Cacheable
annotation lead to a huge memory allocation from the side of OperationCache equals/hashCode ("is duplicated by")The text was updated successfully, but these errors were encountered: