On Wed, 29 Mar 2000, Jeffrey W. Baker wrote:
> > configure Perl with -Dusemymalloc
>
> Wait, doesn't usemymalloc mean to use the system's native malloc? This
> from INSTALL:
>
> "To build without perl's malloc, you can use the Configure command
>
> sh Configure -Uusemymalloc"
yeah, -Uusemymalloc means to use native malloc, notice i suggested
-Dusemymalloc, which means to use Perl's malloc.
> On Linux 2.2, Perl uses its own malloc by default. To use the native
> malloc, specify -Dusemymalloc. It might be amusing to compare the two, as
> Linux has a very fast malloc implementation.
-U == undefine usemymalloc (use system malloc)
-D == define usemymalloc (use Perl's malloc)
i've benchmarked the two, it makes a HUGE difference under solaris, Perl's
malloc kicks the sh*t out of solaris system malloc. Perl's malloc is not
as much of a win under linux, i don't have the numbers handy though.