On one level, this feels like a non-brainer. But then the question is 
why the standard memory allocator in libc hasn't been improved.

I can imagine all kinds of reasons, from "alternatives use too much 
memory" to "not invented here". Any background info?

Regards,   Martin.

On 2013/11/15 12:08, sam.saffron (Sam Saffron) wrote:

> https://bugs.ruby-lang.org/issues/9113

> ---
>
> I recently benched Discourse with tcmalloc / jemalloc and default and noticed 2 very important thing:
>
> median request time reduce by up to 10% (under both)
> PSS (proportional share size) is reduced by 10% under jemalloc and 8% under tcmalloc.
>
> We can always use LD_PRELOAD to yank these in, but my concern is that standard distributions are using a far from optimal memory allocator. It would be awesome if the build, out-of-the-box, just checked if it was on Linux  (eg: https://github.com/antirez/redis/blob/unstable/src/Makefile#L30-L34 ) and then used jemalloc instead.
>
>