On Friday, 22 December 2023 at 19:12:14 UTC, Dmitry Ponyatov wrote:
D lang noted as having a very fast compilation time.

Playing with tiny web-interface apps I found that modern versions of dmd & vibe has such a fast compiling but a very long executable linking time.

Something like 2-3 seconds of compiling stage (with vibe prebuilt), and 24 seconds of total build time


Welcome to template bloat hell.

IIRC diet templates is very template heavy, it makes tons of (D) template instantiations and the linker has a lot of work because of that. It is even worse with LDC.

If there is runtime diet parser(which I doubt) instead of default `render!` template you can move diet to it to save on compile time.

Reply via email to