On Saturday, 22 February 2020 at 11:26:19 UTC, Per Nordlöw wrote:
We're looking for a way to speed up compilation of
template-heavy code. So we are trying to find out which parts
of the code that is most costly to compile.
Is there a dmd flag that shows the code after template
instantiations has been performed? Or some other dmd flag that
can help out finding hot-spots in the compiler in our case.
I have patches which add some tracing functionality.
Another approach is to throw the -v flag and just count which
semantic steps seem to take a long time.