Optimizing with large numbers of templates

bearophile bearophileHUGS at lycos.com
Tue Aug 26 05:01:51 PDT 2008


Christopher Wright:
> What are the typical suggestions for optimizing code that's heavy on 
> templates? My major problem is build time, though executable size is 
> also a concern.

You can try to replace many of the templates that compute stuff at compile time with compile-time functions (where they don't produce bugs). They are faster.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list