Brian Goetz extols the virtues of ConcurrentMaps in his book, and the new computeIfAbsent function seems like it would make it very easy to swap this in for the OpalCaches.
Superficially, [R. thinks] this could cut down on the chance of deadlocks and maybe improve performance, but [he]'d have to think harder about the possible race conditions.
[migrated from Phabricator]
Brian Goetz extols the virtues of
ConcurrentMap
s in his book, and the newcomputeIfAbsent
function seems like it would make it very easy to swap this in for theOpalCache
s.Superficially, [R. thinks] this could cut down on the chance of deadlocks and maybe improve performance, but [he]'d have to think harder about the possible race conditions.