简体   繁体   中英

Any difference in performance in ehcache maxElementsInMemory and maxEntriesLocalHeap

I am using maxElementsInMemory in Ehcache, recently I got to know that from 2.5 it's deprecated and maxEntriesLocalHeap is used.

Any performance enhancement in maxEntriesLocalHeap or just a change in name.

This was just a name change to better indicate where the sizing was applied. The deprecated method, for the Java configuration, delegates to the new method so there is strictly no change performance wise related to that change.

Now between Ehcache 2.5, which is a few years old, and Ehcache 2.10 - the current Ehcache 2.x maintenance, there might be a number of performance improvements coming from different changes. I would recommend giving the latest Ehcache 3.xa try if you can update to that version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM