Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 9578 invoked from network); 24 Apr 2010 13:29:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Apr 2010 13:29:33 -0000 Received: (qmail 78646 invoked by uid 500); 24 Apr 2010 13:29:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 78575 invoked by uid 500); 24 Apr 2010 13:29:31 -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 78567 invoked by uid 99); 24 Apr 2010 13:29:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Apr 2010 13:29:31 +0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.16.240.101] (HELO mx2.riskmetrics.com) (206.16.240.101) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Apr 2010 13:29:26 +0000 From: Carlos Sanchez To: "user@cassandra.apache.org" Date: Sat, 24 Apr 2010 09:27:35 -0400 Subject: RE: Trove maps Thread-Topic: Trove maps Thread-Index: AcrjatxrHIHP5HRmTbCst0bCh3O/EQARwqI5 Message-ID: References: <9694240D-61A1-458D-8722-E26A0876771B@riskmetrics.com> <305AE17C-3655-46F0-AD77-CD5B390E0308@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 There are forEach methods in that would allow you to travel the keys/value= s/entries w/o creating the extra object (entries) ________________________________________ From: Tatu Saloranta [tsaloranta@gmail.com] Sent: Friday, April 23, 2010 11:58 PM To: user@cassandra.apache.org Subject: Re: Trove maps On Fri, Apr 23, 2010 at 1:22 PM, Carlos Sanchez wrote: > I will try to modify the code... what I like about Trove is that even for= regular maps (non primitive) there are no Entry objects created so there a= re much less references to be gced This could help, but how is iteration then handled? Are Map.Entry instances created (and discarded) during iteration? (which could be a net loss in some cases -- or maybe not, it's short-lived garbage vs long-lived one if as part of long-living Map). Just curious, -+ Tatu +- 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.