0

Testing out off-heap caching with ChronicleMap. Will this code create an off-heap in-memory map?

chronicleMap = ChronicleMapBuilder.of(String.class, ByteBuffer.class)
     .entries(aMaxSize)
     .averageKeySize(100)
     .averageValueSize(1000)
     .create();
Fredrik LS
  • 1,480
  • 9
  • 15

1 Answers1

1

Yes. Any instance of ChronicleMap is off heap, it may be file-backed (memory-mapped file) or not, but in any case it will store data off heap.

Dmitry Pisklov
  • 1,196
  • 1
  • 6
  • 16