[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-dev] question: jmalloc
From: |
Rob Savoye |
Subject: |
Re: [Gnash-dev] question: jmalloc |
Date: |
Wed, 08 Oct 2008 07:36:30 -0600 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080723) |
Hong Yu wrote:
>
> Thanks for the information! So to enable it, I only need to add
> '--enable-jemalloc' in build, right? And this works for both malloc/free
> and new/delete, right? Is '--enable-jemalloc' a new feature in gnash-0.8.3?
It's a malloc replacement, so everything works the way it normally
does. It was originally from FreeBSD, and there is used as the system
allocator. Then Mozilla grabbed a copy, made a bunch of modifications,
and uses it in Mozilla & Firefox. I grabbed that copy, and then modified
it for Gnash.
Unlike the system malloc in most Unix systems, jemalloc is optimized
for the many small allocations used by C++ and ECMAscript languages. On
some platforms (x86) it can improve performance by 30%. On other
platforms, like the ARM, it seems to make less of a positive impact.
- rob -