On Wednesday, 4 December 2013 at 18:20:36 UTC, H. S. Teoh wrote:
I'm pretty sure there's a lot of room for optimization in dmd
when it
comes to handling templates. If only I had the time to dig into
the dmd
source code...
I have wasted ~3 months on digging this with no success. And when
Walter has finally paid attention to this issue and changed
template instance emitting algorithm, I still was hardly able to
understand why exactly the changes in pull were necessary to get
that result.
Just be warned ;)