Article View: borland.public.jbuilder.java.language
Article #7636ArrayList.clone() & memory impact
From: T Berry
Date: Thu, 31 May 2001 16:30
Date: Thu, 31 May 2001 16:30
12 lines
1271 bytes
1271 bytes
I've solved the previous problem - I didn't realize that clearing the ArrayList aRow, after each add to the aResult ArrayList, cleared all occurrences of it in aResult. A new question: I'm storing clones of RecordSet rows as ArrayLists in another single ArrayList. Is there a significant memory impact by storing clones of the ArrayList rows in another single ArrayList? Is there a better to approach this? Thanks Tom Berry
Technical Details
Message-ID:
<3B1671B0.EEC3A06B@vhb.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,68af5785aec64c82,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-31 09:46:26 PST Message-ID: <3B1671B0.EEC3A06B@vhb.com> Date: Thu, 31 May 2001 12:30:40 -0400 From: T Berry <tberry@vhb.com> X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: ArrayList.clone() & memory impact Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 204.243.173.176 X-Trace: dnews 991326619 204.243.173.176 (31 May 2001 09:30:19 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews