Re: 答复: 回复:BinaryObject and String.intern

2017-01-04 Thread dkarachentsev
Hi Shawn, BitSet will be marshaled using BitSet.writeObject() serialization implementation. In other words, if this approach saves your memory in heap, it will save it in Ignite as well. If you save collection of strings, Ignite will not check for duplicates as JVM does, and as mentioned Alexey,

Re: 答复: 回复:BinaryObject and String.intern

2017-01-04 Thread Alexey Kuznetsov
Hi, Shawn. Some time ago I created issue "Provide some kind of pluggable compression SPI support" [1] But it is not implemented yet. May be in Ignie 2.0 there could be some kind of such API. See discussion [2] [1] https://issues.apache.org/jira/browse/IGNITE-3592 [2] http://apache-ignite-develope

答复: 回复:BinaryObject and String.intern

2017-01-04 Thread Shawn Du
Hi dkarachentsev, Suppose I have a String array and array length is 1000. There are many duplicated values and only five distinct values in the array. We store them using blow ways, which one save memory most? #1 List #2 Map In client side, #2 will save mem