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-developers.2346864.n4.nabble.com/Data-compression-in-Ignite-2-0-td10099.html On Thu, Jan 5, 2017 at 11:01 AM, Shawn Du <[email protected]> wrote: > Hi dkarachentsev <[email protected]>, > > > > 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<String> > > #2 Map<String,BitSet> > > In client side, #2 will save memory greatly, but how does it in ignite > server? > > If Ignite stores BitSet as Integer array, it seems that #2 will not save > so much memory? > > > > If there any tips to save memory for above case. Thanks in advance. > > > > Thanks > > Shawn > > > > *发件人:* shawn.du [mailto:[email protected]] > *发送时间:* 2017年1月3日 18:37 > *收件人:* [email protected] > *抄送:* [email protected] > *主题:* 回复:BinaryObject and String.intern > > > > > > thanks dkarachentsev <[email protected]>. > > > > 在2017年01月03日 18:25,dkarachentsev <[email protected]> 写道: > > Actually no, because Ignite internally will store it as a BinaryObject and > will send to other nodes in a binary format as well, where all string > fields > will be unmarshaled without intern(). > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/BinaryObject-and-String-intern-tp9826p9834.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > > -- Alexey Kuznetsov
