From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <003301c3453b$e859eba0$d2944251@insultant.net> From: "boyd, rounin" To: <9fans@cse.psu.edu> References: <3F09EDB7.626FE4F5@null.net> Subject: Re: [9fans] Rstat needs three size fields? MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Tue, 8 Jul 2003 12:30:09 +0200 Topicbox-Message-UUID: ee3c119a-eacb-11e9-9e20-41e7f4b1d025 > My rule of thumb used to be that whatever the biggest > size you can imagine for some object, allocate twice > as many bits to hold its size as seem sufficient. as a reallocation strategy i take what i have and then double it. this is when i'm dealing with something that's going to 'grow' and i don't want to have to realloc for each new 'element'.