-
-
Notifications
You must be signed in to change notification settings - Fork 667
Remove deferred semantic analysis 2 and 3 done when using -unittest flag #10641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your pull request and interest in making D better, @alexandrumc! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#10641" |
|
The build kite dscanner failure looks unrelated. |
It does for me, because std.format has unittests in templates, e.g. I suspect that there is some code generation missing for unittests inside templates with this PR. |
|
What's the status on this? @alexandrumc were you able to find the root of the failure in dscanner? |
The work has moved here: #10759 |
|
So should this be closed? |
Yes, it should. |
There's an unnecessary semantic analysis done on templates from imported modules which leads to a compilation that takes up to 5x longer.
Before
After:
time dmd -c -unittest foo.d real 0m0,149s user 0m0,138s sys 0m0,012sRelated to: #8124