Speeding up compilation by using jemalloc

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 22 11:43:52 PST 2015


On 1/22/15 11:37 AM, weaselcat wrote:
> Might be of use to someone, but I was looking for ways to speed up dmd's
> albeit already fast compilation times.
>
> Just by dropping in jemalloc in place of glibc's malloc via LD_PRELOAD
> on my linux machine I saw a 10-15% drop in compilation times across the
> board. Not sure if this is common knowledge or not.
>
> (Sorry if this takes away from your coffee time : ) )

I think we should statically link jemalloc with dmd. Any takers? -- Andrei


More information about the Digitalmars-d mailing list