This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: malloc
- To: blackdragon at tyler dot net
- Subject: Re: malloc
- From: Andreas Jaeger <aj at suse dot de>
- Date: Sun, 09 Sep 2001 08:55:59 +0200
- Cc: libc-alpha at sources dot redhat dot com
- References: <3B9A770C.E2F50CD6@tyler.net>
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