On 2012-07-25 00:18, Jonathan M Davis wrote:

I don't have any hard evidence for it, but I've always gotten the impression
that it was templates, mixins, and CTFE which really slowed down compilation.
Certainly, they increase the memory consumption of the compiler by quite a
bit. My guess would be that if we were looking to improve the compiler's
performance, that's where we'd need to focus. But we'd have to actually profile
the compiler on a variety of projects to be sure of that (which is at least
partially related to what Andrei is suggesting).

We did some profiling on derelict in the process of adding support for D2. This was mostly testing string mixins, the result was: It's a lot faster to use few string mixins containing a lot of code then using many string mixins containing very little code.

--
/Jacob Carlborg

Reply via email to