I asked the author about this. His response is below. I propose to just copy the source into the bridge. It's an acceptable license small quantity inclusion (the friendly BSD version). Clean-rooming a new version with the same bugs does not strike me as reasonable.
Hi, CachedMap was provided in old versions of Javolution but it has been removed because its implementation was not correct. The right implementation should have used a thread local array to store the cache value and insure that concurrent threads don't step on each others toes). CachedMap is a simple look up table acting as proxy for any kind of map in order to accelerate frequently access entries. The backing map is called only when the cache misses. If the backing map is a hash map the performance gain is not substantial; but for slower backing map (e.g. TreeMap) or for ConcurrentHashMap a more appreciable gain could be obtained (most frequent access being significantly faster). We might put it back with the correct implementation (see issue http://java.net/jira/browse/JAVOLUTION-95 ) Cheers, Jean-Marie --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
