Speeding up compilation of template-heavy code

Stefan Koch uplink.coder at googlemail.com
Sat Feb 22 17:44:52 UTC 2020


On Saturday, 22 February 2020 at 12:24:56 UTC, drathier wrote:
> On Saturday, 22 February 2020 at 11:53:38 UTC, Dennis wrote:
>> On Saturday, 22 February 2020 at 11:26:19 UTC, Per Nordlöw 
>> wrote:
>>> Is there a dmd flag that shows the code after template 
>>> instantiations has been performed?
>>
>> The -vcg-ast flag does that.
>
> The d.cg files still contain templates, so it appears like 
> they're instantiated after -vcg-ast?

no. -vcg-ast runs directly before codegen.
All ast-rewriteing has already happend at that point.
The reason it contains the template declarations is because they 
are still in the ast.
There is no point in removing them.


More information about the Digitalmars-d-learn mailing list