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 -
_______________________________________________
Gnash-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gnash-dev