Templates are slow.

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 8 15:57:07 PDT 2016


Hi Guys,

I have some more data.
In the binderoo example the main time is spent in the backend.
generating code and writing objects files.

The front-end spends most of it's time comparing strings of 
unique type-names :)
One particular outlier in the backend code is the function ecom 
which eliminates common subexpression.
We would potentially save some time by not emitting those in the 
first-place.




More information about the Digitalmars-d mailing list