Re: BinaryObject vs a HashMap

2018-10-02 Thread Ilya Kasnacheev
Hello! You cannot avoid deserialization since data is stored in off-heap in serialized form and also perhaps sent over network. If you have a lot of different types, using HashMap will be preferred (with primitive keys/values). You could also try storing byte[] values to have precise control over

BinaryObject vs a HashMap

2018-10-02 Thread Mikael
Hi! Is there some meta data storage overhead for binary object "types" ? I need a cache where the value is pretty much a small key value store (5-10 keys and values, all strings, every value different) and with that few values maybe just two arrays with keys and values or a hash map, but as I