Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 84187 invoked from network); 23 Apr 2010 20:22:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Apr 2010 20:22:57 -0000 Received: (qmail 3987 invoked by uid 500); 23 Apr 2010 20:22:56 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 3971 invoked by uid 500); 23 Apr 2010 20:22:56 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 3963 invoked by uid 99); 23 Apr 2010 20:22:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 20:22:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [12.130.32.201] (HELO mx1.riskmetrics.com) (12.130.32.201) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 20:22:51 +0000 From: Carlos Sanchez To: "user@cassandra.apache.org" Date: Fri, 23 Apr 2010 16:22:28 -0400 Subject: Re: Trove maps Thread-Topic: Trove maps Thread-Index: AcrjIrI0w6b6y2kiTHe21EwGzhr2yg== Message-ID: <305AE17C-3655-46F0-AD77-CD5B390E0308@riskmetrics.com> References: <9694240D-61A1-458D-8722-E26A0876771B@riskmetrics.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I will try to modify the code... what I like about Trove is that even for r= egular maps (non primitive) there are no Entry objects created so there are= much less references to be gced On Apr 23, 2010, at 2:55 PM, Jonathan Ellis wrote: > From what I have seen Trove is only a win when you are doing Maps of > primitives, which is mostly not what we use in Cassandra. (The one > exception I can think of is a map of int -> columnfamilies in > CommitLogHeader. You're welcome to experiment and see if using Trove > there or elsewhere makes a measurable difference with stress.py.) > > -Jonathan > > On Fri, Apr 23, 2010 at 2:50 PM, Carlos Sanchez > wrote: >> Jonathan, >> >> Have you thought of using Trove collections instead of regular java coll= ections (HashMap / HashSet) in Cassandra? Trove maps are faster and require= less memory >> >> Carlos >> >> This email message and any attachments are for the sole use of the inten= ded recipients and may contain proprietary and/or confidential information = which may be privileged or otherwise protected from disclosure. Any unautho= rized review, use, disclosure or distribution is prohibited. If you are not= an intended recipient, please contact the sender by reply email and destro= y the original message and any copies of the message as well as any attachm= ents to the original message. >> This email message and any attachments are for the sole use of the intended= recipients and may contain proprietary and/or confidential information whi= ch may be privileged or otherwise protected from disclosure. Any unauthoriz= ed review, use, disclosure or distribution is prohibited. If you are not an= intended recipient, please contact the sender by reply email and destroy t= he original message and any copies of the message as well as any attachment= s to the original message.