Few ideas to reduce template bloat
Walter Bright
newshound1 at digitalmars.com
Fri Mar 26 12:41:28 PDT 2010
bearophile wrote:
> After reading that paper I can say that D compilers can start doing the
> simpler thing: recognizing instantiations of a function template that are
> compiled to the same asm code, and keep only one of them. The Microsoft
> compiler seems to do that already.
Because of separate compilation, that can't be done with the compiler in the
general case. The linker can, though.
More information about the Digitalmars-d
mailing list