sumtype icon indicating copy to clipboard operation
sumtype copied to clipboard

match has poor compile-time performance

Open pbackus opened this issue 4 years ago • 1 comments

See this thread on the D forum:

https://forum.dlang.org/post/[email protected]

Profiling the test suite with LDC's --ftime-trace flag should be the first step here. Additional test cases, especially those derived from real-world code, would be very helpful for this.

pbackus avatar Oct 28 '21 13:10 pbackus

Looks like --ftime-trace isn't fine-grained enough for this. Next step is runtime profiling of the D compiler, to see exactly where in semantic analysis it's spending its time.

pbackus avatar Feb 17 '22 22:02 pbackus