These are chat archives for atomix/atomix

14th
Feb 2018
Johno Crawford
@johnou
Feb 14 2018 17:02
Yeah bunch of stuff like director executor too from guava
And asserting parameters
Can direct executor be replaced with Runnable::run?
Or is there some performance penalty
I might benchmark it later
Jonathan Halterman
@jhalterman
Feb 14 2018 18:38
Would be happy to write a new cache :)
But the wise thing is to defer to Ben Manes https://github.com/ben-manes/caffeine
Jonathan Halterman
@jhalterman
Feb 14 2018 18:48
A simple ConcurrentMap wrapped with a cleaner thread still needs to perform somewhat course locking to expire entries since it doesn't have access to the ConcurrentMap's underlying locks. This may cause a bit of contention, in which case you may as well use a Map under the covers. This is more or less ExpiringMap https://github.com/jhalterman/expiringmap/. For better concurrency/performance, use Caffeine.