[ 
https://issues.apache.org/jira/browse/OFBIZ-3779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Heath reopened OFBIZ-3779:
-------------------------------


Sorry, I had to revert this.  It breaks the test cases.  If you edit 
framework/base/build.xml, so that only UtilCache is being tested, the 
testChangeMemSize testcase fails with the new library.  Reducing the capacity 
of CLHM *must* remove items in LRU order.  Any other removal order doesn't make 
sense; If I reduce the capacity, I want to keep the items that were most 
recently used, and throw away items that are older, until the size is within 
the new limit.

> Upgrade ConcurrentLinkedHashMap
> -------------------------------
>
>                 Key: OFBIZ-3779
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3779
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Ben Manes
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: SVN trunk
>
>
> The UtilCache class should use v1.0 of the CLHM library. While the previous 
> version is fully functional, I am no longer supporting it. The new design 
> should be faster and more reliable due to not needing to use a pseudo LRU 
> algorithm for performance (which has degradation scenarios ). A true LRU is 
> now supported with no lock contention issues. Please consider upgrading when 
> convenient.
> http://code.google.com/p/concurrentlinkedhashmap/
> JavaDoc: 
> http://concurrentlinkedhashmap.googlecode.com/svn/wiki/release-1.0-LRU/index.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to