<div dir="ltr">This is great information. 71000 instantiations of isNarrowString!! Definitely need a hash rather than a linear list. I had no idea. You're right, though, about figuring out a way to avoid this. isNarrowString is nothing more than:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
template isNarrowString(T)<br>
{<br>
    enum isNarrowString = (is(T : const char[]) || is(T : const wchar[])) && !isAggregateType!T;<br>
}<br>
<br>
Makes me wonder why isAggregateType is not 71000 instantiations, too?<br></blockquote><div><br></div><div>It short-circuits through &&.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

Maybe we can avoid generating a mangled name for a template if it is an eponymous one that evaluates to a manifest constant? This will save a ton of memory.</blockquote><div> </div>Yeah.  Interestingly most of these instantiations are inside template constraints or static if, maybe we can do something with that.<br>
 There's low-lying fruit here.<br></div></div></div>