Our template emission strategy is broken

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 12 13:26:35 PST 2015


On Thursday, 12 November 2015 at 02:13:04 UTC, Martin Nowak wrote:
> There shouldn't be anything quadratic left for template 
> instantiation in the frontend.

Maybe not for a single instantiation, but constructing the module 
member list is overall still quadratic in the number of members 
(which might be quite a lot if you heavily use templates, because 
all the instances get added first, whether they make it to 
codegen or not). See: 
https://issues.dlang.org/show_bug.cgi?id=15323.

  — David


More information about the Digitalmars-d mailing list