Speeding up compilation by using jemalloc

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 22 11:59:23 PST 2015


On Thu, 22 Jan 2015 19:39:24 +0000, Vladimir Panteleev wrote:

> On Thursday, 22 January 2015 at 19:37:11 UTC, 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 thought dmd used a bump-the-pointer approach, since it almost never
> frees memory?

it not frees, but it still does alot of `new`. seems that jmalloc is 
better at it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150122/f383c3ef/attachment-0001.sig>


More information about the Digitalmars-d mailing list