Github user afs commented on a diff in the pull request:
https://github.com/apache/jena/pull/57#discussion_r29957079
--- Diff:
jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheSimple.java ---
@@ -37,120 +37,81 @@
public class CacheSimple<K,V> implements Cache<K,V>
{
- private final V[] values ;
- private final K[] keys ;
- private final int size ;
- private int currentSize = 0 ;
- private BiConsumer<K,V> dropHandler = null ;
+ private Map<K,V> internalCache;
+
--- End diff --
LinkedHashMap implement an LRU policy and is what the old CacheLRU used.
We swapped that to CacheGuava and removed CacheLRU. Using LinkedHashMap again
means we have two LRU caches.
CacheSimple has a specific policy of slot replacement should that be
wanted. We can leave it be and decide whether to delete it later.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---