www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/07/23:57:41

Date: Fri, 7 May 93 23:16:29 EDT
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: malloc/free broken??

> I guess that the original poster's example (few very big blocks) is the 
> counter example when the "tradional" approach works better. The GNU or BSD 
> method is far superior when a large number of varying size but relatively 
> small structures are allocated/freed in random order.

I've never seen a C compiler with a library which let you select the malloc
algorithm which best fit your task.  Sometimes I'd like to add my own routines,
but you never know whether some other library routines depend on the details
of the memory allocator.

- Raw text -


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