X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Wed, 20 Feb 2002 13:19:27 -0600 From: Eric Rudd Subject: Re: Malloc/free DJGPP code To: Eli Zaretskii Cc: djgpp-workers AT delorie DOT com Message-id: <3C73F6BF.B191A91C@cyberoptics.com> Organization: CyberOptics MIME-version: 1.0 X-Mailer: Mozilla 4.72 [en] (Win95; U) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en,pdf References: <10202200445 DOT AA15769 AT clio DOT rice DOT edu> <3C734B2D DOT F82A42FB AT yahoo DOT com> <3C73BBE2 DOT 9289C4F6 AT cyberoptics DOT com> <2110-Wed20Feb2002194202+0200-eliz AT is DOT elta DOT co DOT il> Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: >> (If blocks are allocated in sizes that are powers of two, there's no reason >> this last example can't be made to run fast -- though it's presently slow, > > Is that with the CVS version or with the one in djdev203? I believe Mark made > a change in CVS that speeds up realloc by a large factor. Yes, you are right. The test I ran was with the malloc in djdev203. It was taking roughly 20k clocks for a realloc of a 100kB block. I re-ran the test with 1.11 from the CVS tree and found that the reallocs were taking only roughly 300 clocks. So I guess this problem has been solved. -Eric