malloc

Andreas Jaeger aj@suse.de
Sat Sep 8 23:56:00 GMT 2001


blackdragon@tyler.net writes:

> why is malloc so bloody slow? some programs (including perl) carry their
> own malloc to evade this

The malloc in glibc is not slow.  It has a number of features:
- thread safe
- allows debugging
- has internal checks

which other mallocs do not have and therefore might be faster.

But what I'm most interested in is actually data where glibc's malloc
is really slow.  Please show us an example, otherwise any such
discussion is void,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-alpha mailing list