sumtype
sumtype copied to clipboard
match has poor compile-time performance
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.
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.