template statistics

Jean-Louis Leroy jl at leroy.nyc
Sat Jun 6 12:54:11 UTC 2020


On Tuesday, 2 June 2020 at 06:47:54 UTC, Walter Bright wrote:
> Many people are trying to figure out what templates are blowing 
> up their compile. This should help:
>
> https://github.com/dlang/dmd/pull/11208

Looks super useful.

I tried it on the test suite of openmethods and I see lots of 
duplicate entries, e.g.:

[...]
        2        1   setName(NewValue...)
        5        5   UnpackDeepImpl(U...)
      121       40   Parameters(func...) if (func.length == 1 && 
isCallable!func)
        8        8   UnpackDeepImpl(U...)
        2        2   argumentMixtureAt(int i)
        3        3   UnpackDeepImpl(U...)
        4        4   UnpackDeepImpl(U...)
        5        5   UnpackDeepImpl(U...)
[...]



More information about the Digitalmars-d mailing list