On 10/06/14 10:12, Sönke Ludwig wrote:
But yes, it's definitely not what you want to have for D. I'm not sure how much can be done about that, though - except from rewriting the CTFE engine with performance in mind (maybe even using a JIT compiler). Or maybe it's possible to be more liberal with algorithmic optimizations when the CTFE memory usage brought to a reasonable level.
Can the templates be compiled in a separate phase, not using CTFE but as a regular compiler?
-- /Jacob Carlborg