delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/03/05:00:09

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Andrew Cottrell <andspam DOT at DOT swiftdsl DOT dot DOT com DOT dot DOT au AT unknown DOT addr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Speed of free()
Date: Wed, 03 Mar 2004 20:49:28 +1100
Organization: HOME
Message-ID: <faab40th2gopgcdfi4p9lgkc4ui6ff52p6@4ax.com>
References: <40457b5c DOT 5675949 AT localhost>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Lines: 22
NNTP-Posting-Host: 202.154.115.197
X-Trace: 1078306977 news.syd.swiftdsl.com.au 27648 202.154.115.197
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>Is there a FAQ about malloc/free performance?  I'm having speed problems
>when freeing a large number of small blocks (where large == a million or so,
>and small == 48 bytes).
>
>I have an AMD Duron 900MHz, 384k RAM, Win98SE; DJGPP 2.03, gcc 3.3.2;
>go32-v2 shows 258901k mem/30659k swap available.  On this machine, a sample
>set of about 400,000 blocks takes about two minutes to free.  The same
>program on a less powerful machine running FreeBSD (4.3R, P3-450, 128k, gcc
>2.95.3) takes 3.5 seconds.
Goto www.delorie.com and search the archives and you will find allot
of discussions in the djgpp_workers list about malloc over the years.
If you spend the time looking I am 98% confident you will find the
answer.

BTW LIBC is where the malloc/free code is and as such it is dependent
on the version of DJGPP you have. Did you try the 2.04 alpha release
to see if it improves things? (I think it will, not to the same degree
as FreeBSD does).

Andrew


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019