-
Notifications
You must be signed in to change notification settings - Fork 355
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
Improving sdk install performance #13128
Comments
I'd be open to a PR on this @sebastienros. |
I am glad you are suggesting it as I didn't want to start anything if you had reasons not do accept changes around that. Thanks |
This has been bothering me too. It's both too time consuming and too noisy. I have already made changes to dotnet-install scripts to reduce the chattiness. I see there are possibly few ways of achieving the improvement. Probably the easiest option is to add a new switch - e.g., arcade/eng/common/dotnet-install.ps1 Line 20 in fb14cae
This way for the first time a dev will need to run A more hands-off kind of solution could be building the runtime-pack paths and then conditionally run the above command. |
Check if runtime toolsets specfied in global.json under tools/runtimes node exist before attempting to restore those. This check removes unnecessary wait time and reduces the console "noise". Resolves #13128
Check if runtime toolsets specfied in global.json under tools/runtimes node exist before attempting to restore those. This check removes unnecessary wait time and reduces the console "noise". Resolves #13128
Check if runtime toolsets specfied in global.json under tools/runtimes node exist before attempting to restore those. This check removes unnecessary wait time and reduces the console "noise". Resolves #13128
I noticed that every time I would run
build.cmd
it is taking an unreasonable amount of time to detect that I already have the required runtimes locally in.\.dotnet
. I managed to improve this time by using this check intools.ps1
:I believe that just loading
dotnet-install.ps1
is already costly, and on repositories that target multiple runtimes it is accumulating quickly. On my previous machine with aspnetcore it would spend 10s for nothing on each build.But I think this could be improved even more if the calls to
dotnet-install.cmd
were skipped altogether and that would performance even better since it would prevent from starting acmd
which itself callspowershell
then loads the scripts, for each runtime inglobal.json
. My solution is barely skipping thedotnet-install.ps1
invocation.The text was updated successfully, but these errors were encountered: