https://github.com/thinkaurelius/titan
Revision 1f6f9503c5a6120da4cba0dea8fbab6fb27624be authored by Dan LaRocque on 17 December 2014, 14:24:38 UTC, committed by Dan LaRocque on 17 December 2014, 14:24:38 UTC
This commit adds the `graph.kryo-instance-cache` option.  It takes
either the value THREAD_LOCAL (default) or CONCURRENT_HASH_MAP.  This
commit effectively restores the old Kryo caching behavior of
KryoSerializer, where it stored Kryos in a ThreadLocal, and where
those ThreadLocals are not necessarily removed when Titan shuts down.
The CHM setting provides an alternative that, unlike ThreadLocal, is
exposed to synchronization overhead when retrieving cached Kryos, but
which also releases all of its cached Kryo references when the graph
is shutdown.

For #840
1 parent 8d4cb4c
History
Tip revision: 1f6f9503c5a6120da4cba0dea8fbab6fb27624be authored by Dan LaRocque on 17 December 2014, 14:24:38 UTC
Support ThreadLocal and CHM for Kryo caching
Tip revision: 1f6f950

README.textile

back to top