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
bug 8858 - Switch to analyze dependencies without printing them #7400
Conversation
Thanks for your pull request, @marler8997! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Some tips to help speed things up:
Bear in mind that large or tricky changes may require multiple rounds of review and revision. Please see CONTRIBUTING.md for more information. 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. |
This seems like an inflation of options. What's wrong with directing deps to We really need to stop defining new artifacts that are subtly different versions of existing artifacts. The right way to go is improve the existing artifacts. |
Even if output goes to /dev/null (which I don't how you would do that on windows) dmd is still spending cycles generating the output. I estimate this is a very minor performance savings but I thought I would do what I could to try to improve the performance of rdmd in any way I can. Weighing the simplicity of this change with a minor performance savings in rdmd seemed like it could be worth it, but I could go either way on this one. Based on your comments about how this complicates dmd's interface I'll go ahead and close this one. |
The one way to go about this is to measure. |
For the digger project, on windows (piping output to a file, which is faster than going to the console) it saves about 100 ms out of about 8 seconds. Around a 1 to 2% savings. |
This is mostly a problem of Windows console. Piping ti equivalent of
/dev/null should nullify this difference.
пт, 8 дек. 2017 г. в 5:15, Jonathan Marler <notifications@github.com>:
… For the digger project, on windows (piping output to a file, which is
faster than going to the console) it saves about 100 ms out of about 8
seconds. Around a 1 to 2% savings.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7400 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARMqjwoj51la1D2sVMSiyb9kOKMZpqaks5s-Ju0gaJpZM4Q3SDx>
.
|
FYI: the corresponding file on Windows is |
Didn't know about |
Both work for me with the released dmd, but not if dmd is built with VC. |
I suspect it's not VC related, but caused by #7299 |
…or to a file.
This is in response to (https://issues.dlang.org/show_bug.cgi?id=8858). It allows the option
-deps-
which causes the compiler to analyze dependencies without printing them to stderr or to a file. The typical use case for this would be when a tool like rdmd needs to know all the dependencies but is using the verbose output instead of the dependency specific output.