malloc

Owen Taylor otaylor@redhat.com
Sun Sep 9 19:55:00 GMT 2001


blackdragon@tyler.net writes:

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

It should be noted that the Perl malloc is not really intended
to evade the glibc malloc, but slow mallocs on other systems,
which can be a lot slower than the glibc malloc.

(I suspect inclusion of a malloc implementation in Perl predates 
any port of Perl to glibc ... it certainly predates the current
malloc implementation in glibc by a whole lot.)

AFAIK, almost everybody uses the system malloc when compiling Perl
on Linux and other glibc platforms.
 
Regards,
                                        Owen



More information about the Libc-alpha mailing list