Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 44243 invoked from network); 2 Nov 2010 17:41:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 17:41:20 -0000 Received: (qmail 64754 invoked by uid 500); 2 Nov 2010 17:41:51 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 64637 invoked by uid 500); 2 Nov 2010 17:41:50 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 64629 invoked by uid 99); 2 Nov 2010 17:41:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:41:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.55.116.104 as permitted sender) Received: from [65.55.116.104] (HELO blu0-omc3-s29.blu0.hotmail.com) (65.55.116.104) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:41:44 +0000 Received: from BLU142-W1 ([65.55.116.73]) by blu0-omc3-s29.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 2 Nov 2010 10:41:23 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_e74d8d9c-7801-487c-aa27-5b5f234a1e0e_" X-Originating-IP: [71.192.158.205] From: Martin Gainty To: Subject: RE: [Primitives] Does anyone use this? Date: Tue, 2 Nov 2010 13:41:23 -0400 Importance: Normal In-Reply-To: References: <579458222.337866.1288639948939.JavaMail.root@sz0116a.westchester.pa.mail.comcast.net> <4CCFF710.3080207@ll.mit.edu> <20101102172018.C5D46FDF@athena.apache.org> , MIME-Version: 1.0 X-OriginalArrivalTime: 02 Nov 2010 17:41:23.0723 (UTC) FILETIME=[2AE0B5B0:01CB7AB5] --_e74d8d9c-7801-487c-aa27-5b5f234a1e0e_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Brian =20 how does primitive collections implementation perform better than JDK colle= ctions? thanks=2C Martin=20 ______________________________________________=20 please do not alter or disrupt this transmission. thank you =20 > Subject: Re: [Primitives] Does anyone use this? > From: brian@pontarelli.com > Date: Tue=2C 2 Nov 2010 11:32:01 -0600 > To: user@commons.apache.org >=20 > I would assume once you get out of the autoboxing caches the performance = will get even worse. It really depends on the application=2C but I've found= a number of spots where primitive collections work much better than autobo= xing and JDK collections. >=20 > -bp >=20 >=20 > On Nov 2=2C 2010=2C at 11:25 AM=2C James Carman wrote: >=20 > > Yet another dependency to add to the mix. > >=20 > > On Tue=2C Nov 2=2C 2010 at 1:17 PM=2C Cogen=2C David - 1008 - MITLL > > wrote: > >>=20 > >> ________________________________________ > >> From: jcarman@carmanconsulting.com [jcarman@carmanconsulting.com] On B= ehalf Of James Carman [james@carmanconsulting.com] > >> Sent: Tuesday=2C November 02=2C 2010 12:30 PM > >> To: Commons Users List > >> Subject: Re: [Primitives] Does anyone use this? > >>=20 > >> Premature optimization with JDK5. I'd say stick to the JDK classes if > >> you can and only try to beef up space/performance if you need to. > >>=20 > >>=20 > >> Normally I agree about evils of premature optimization. But ArrayListI= nt is practically a drop-in replacement for ArrayList and I see no= reason not to use it if it is supported and reliable. > >>=20 > >> My test of 2 billion accesses (reads and writes) ran in 35% of the tim= e when I used ArrayListInt vs. ArrayList. > >> --------------------------------------------------------------------- > >> To unsubscribe=2C e-mail: user-unsubscribe@commons.apache.org > >> For additional commands=2C e-mail: user-help@commons.apache.org > >>=20 > >>=20 > >=20 > > --------------------------------------------------------------------- > > To unsubscribe=2C e-mail: user-unsubscribe@commons.apache.org > > For additional commands=2C e-mail: user-help@commons.apache.org > >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: user-unsubscribe@commons.apache.org > For additional commands=2C e-mail: user-help@commons.apache.org >=20 = --_e74d8d9c-7801-487c-aa27-5b5f234a1e0e_--