X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Newsgroups: comp.lang.c,comp.os.msdos.djgpp,comp.compilers.lcc Subject: Re: hash library - interface criticisms References: <3C4ADB8E DOT 552CAE40 AT yahoo DOT com> <3C4B0ED1 DOT 3F274F98 AT is DOT elta DOT co DOT il> Organization: Alcatel USA From: jmccarty AT sun1307 DOT ssd DOT usa DOT alcatel DOT com (Mike Mccarty Sr) NNTP-Posting-Host: sun1307.ssd.usa.alcatel.com Message-ID: <3c4f46b4$1@news.alcatel.com> Date: 23 Jan 2002 17:26:44 -0600 X-Trace: news.alcatel.com 1011828404 sun1307.ssd.usa.alcatel.com (23 Jan 2002 17:26:44 -0600) Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <3C4B0ED1 DOT 3F274F98 AT is DOT elta DOT co DOT il>, Eli Zaretskii wrote: )I think the DJGPP implementation of malloc is optimized for allocations more )than deallocations. But you can easily see where're the hot spots if you )compile malloc.c from the library with -pg, link with -pg, and then profile )the test program. That's the beauty of Free Software: the sources are )freely available to study and scrutinize. ) )I have no idea what does lcc use in its library. ) )Btw, a program should not need to free its heap before it exits. The OS )will take care about it. This is completely OS dependent. Some OS will do that, and some will not. Mike -- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} This message made from 100% recycled bits. I can explain it for you, but I can't understand it for you. I don't speak for Alcatel <- They make me say that.