Bug 13142

Summary: HashMapObjectCache grows beyond its maxSize
Product: Slide Reporter: Lukasz Kowalczyk <lukasz>
Component: CoreAssignee: Slide Developer List <slide-dev>
Status: RESOLVED WONTFIX    
Severity: major    
Priority: P3    
Version: 1.0.11   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Alternative Implementation for ObjectCache

Description Lukasz Kowalczyk 2002-09-30 15:20:20 UTC
The class org.apache.slide.util.HashMapObjectCache doesn't respect its maxSize 
parameter. An easy fix would be to add cache size checking in the put() method.
Comment 1 Martin Holz 2003-05-26 14:14:14 UTC
Created attachment 6495 [details]
Alternative Implementation for ObjectCache
Comment 2 Martin Holz 2003-05-26 14:19:13 UTC
Under some circumstances, HashMapObjectCache does not cache at all. Replacing
HashMapObjectCache with LRUObjectCache can increase performance of Propfind
15 times or more. LRUObjectCache is a very thin wrapper around 
jakarata-commons-collections LRUMap.
Comment 3 Martin Holz 2004-02-01 17:14:19 UTC
I have deprecated HashMapObjectCache, since it is not longer used.