Object.factory() and exe file size bloat

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 20 22:35:21 PDT 2015


On 8/20/2015 10:24 PM, BBasile wrote:
> Other alternatives would be a pragma or an attribute to disable TypeInfo
> generation.

Interestingly, my idea would not disable TypeInfo generation. Instead, the 
TypeInfo would be generated into a COMDAT section. Then, only if it is 
referenced is it linked in.

The ModuleInfo, as it currently is implemented, contains a reference to every 
class TypeInfo, thus pulling them all in.



More information about the Digitalmars-d mailing list