From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200307082219.h68MJT723116@augusta.math.psu.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] Rstat needs three size fields? In-Reply-To: Your message of "Tue, 08 Jul 2003 16:09:14 MDT." From: Dan Cross Date: Tue, 8 Jul 2003 18:19:29 -0400 Topicbox-Message-UUID: ef468598-eacb-11e9-9e20-41e7f4b1d025 > > So you end up needing twice the memory anyway! > > not for just a count pass. But what are you counting? If you store all the data in a list so that you can find out how big to make an array (are we assuming we're getting the data from somewhere I can do more than one pass?), you still use twice the memory when you allocate the array. - Dan C.