[vibe] what's wrong with linking time of vibe applications?

evilrat evilrat666 at gmail.com
Sun Dec 24 19:31:28 UTC 2023


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.



More information about the Digitalmars-d-learn mailing list