DMD compilation speed

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 31 14:21:03 PDT 2015


On Tuesday, 31 March 2015 at 18:24:49 UTC, deadalnix wrote:
> On Tuesday, 31 March 2015 at 11:29:23 UTC, ketmar wrote:
>> On Tue, 31 Mar 2015 10:14:05 +0000, Temtaime wrote:
>>
>>> Is anyone there looked how msvc for example compiles really 
>>> big files ?
>>> I never seen it goes over 200 MB. And it is written in C++, 
>>> so no GC.
>>> And compiles very quick.
>>
>> and it has no CTFE, so...
>>
>> CTFE is a big black hole that eats memory like crazy.
>
> I'm going to propose again the same thing as in the past :
>  - before CTFE switch pool.
>  - CTFE in the new pool.
>  - deep copy result from ctfe pool to main pool.
>  - ditch ctfe pool.

Wait, you mean DMD doesn't already do something like that? Yikes. 
I had always assumed (without looking) that ctfe used some 
separate heap that was chucked after each call.


More information about the Digitalmars-d mailing list