This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: malloc


Owen Taylor wrote:

> 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

with the extra gnu "extensions" all over the library, theres no surprise that
malloc has its own quirks;

im currently working on a series of tests for various implementations of
memory allocation; when the actual results are in, ill pass them on, but for
now it appears that glibc is even slower than most, and alot more prone to
error unless extreme care is taken.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]