On Wednesday, 25 January 2017 at 12:49:05 UTC, Stefan Koch wrote:
On Tuesday, 24 January 2017 at 23:25:12 UTC, Profile Anaysis
wrote:
I am trying to compile some code and it takes around 6
seconds. Even if I change one line in one module, it takes the
same time. There are about 20 different d modules.
[...]
yes the compiler can be used to profile itself.
build it with make ENABLE_PROFILE=1
If your code is overly slow you are probably using recursive
variaidic templates.
Would it not be easier to have this feature as a command line
argument that enables it in the compiler or include a compiler
version that does this?
Not all everyone is good at building from sources...