Some templates cost much more than others, and it's not related to how many times a template was actually used (not necessarily at least) — the coefficient in the O(n) matters.
Comment #1 by dlang-bot — 2022-02-14T22:16:22Z
@maxhaton created dlang/dmd pull request #13653 "Make -vtemplates measure the time spent instantiating" fixing this issue:
- Fix Issue 22772 - Make -vtemplates give a rough estimate of total compilation time of a given template
https://github.com/dlang/dmd/pull/13653
Comment #2 by robert.schadek — 2024-12-13T19:20:56Z