Closed GoogleCodeExporter closed 9 years ago
A followup,
since in my use case the cache access was in a contended hotspot (caching the
result of some expensive reflection), I created a LoadingCache implementation
which is based on jdk ConcurrentHashMap:
https://code.google.com/p/spf4j/source/browse/trunk/spf4j-core/src/main/java/org
/spf4j/concurrent/UnboundedLoadingCache.java
This allows me to use a simpler and faster implementation where it makes sense.
This implementation is deprecated by the enhancements done to JDK 1.8
ConcurrentHashMap. (computeIfAbsent(K key, Function<? super K,? extends V>
mappingFunction))
I believe it is worth improving the CacheBuilder and provide a more lightweight
implementation where the parameter constraints allow?
Original comment by zolyfar...@yahoo.com
on 24 Mar 2014 at 2:32
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:10
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
zolyfar...@yahoo.com
on 15 Jan 2014 at 5:32