Skip to content
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

Slow to get dependency information on slow connection #4089

Closed
Korporal opened this issue Dec 10, 2016 · 3 comments
Closed

Slow to get dependency information on slow connection #4089

Korporal opened this issue Dec 10, 2016 · 3 comments
Assignees
Milestone

Comments

@Korporal
Copy link

I'm working on a slow (DSL) connection. Every time I select a package as I proceed to consolidate packages for a large solution, I see this kind of message in the VS Output Window:

Attempting to gather dependency information for package 'Dapper.1.50.2' with respect to project...

And it stays that way for some 15 or more minutes!! (as it checks nuget.org).

Questions for ya'll

  • Why isn't this dependency information computed and saved at the time the package is published or installed?
  • Why does it take 15 or more minutes to fail to get the dependency information if I have inadvertently selected the wrong nuget source?
  • Why is the nuget source URL (or at least the server part) not also saved when a package is installed?

With a fast connection one might never notice these, but in fact they strike me as rather large design oversights...

@rrelyea rrelyea added Tenet:Performance Performance issues Type:Bug labels Dec 13, 2016
@rrelyea rrelyea added this to the Future-1 milestone Dec 13, 2016
@rrelyea
Copy link
Contributor

rrelyea commented Dec 13, 2016

Thanks for the report. We'll put this in our queue. Won't fit in 4.0, but we want to continue to chip away at scenarios like this.
@jainaashish - feel free to help answer some of these questions if you can do quickly.

@rrelyea rrelyea changed the title Slow to get dependency information Slow to get dependency information on slow connection Dec 13, 2016
@jainaashish
Copy link
Contributor

Why isn't this dependency information computed and saved at the time the package is published or installed?
because package dependencies can change with newer versions so we need to compute dependencies with every new version or update.

Why does it take 15 or more minutes to fail to get the dependency information if I have inadvertently selected the wrong nuget source?
It basically try and get dependency information for all installed packages from all selected sources at one shot. So you can look for how many packages are installed and selected sources? Still few recommendations to improve this time:

  • If possible, select specific packages you want to update through NuGet manager UI.
  • If you know your source, then select that specific one, instead of selected ALL.

Even after these recommendations, it still takes long time even for slow connection, then share us your sample solution and we'll take a look.

Why is the nuget source URL (or at least the server part) not also saved when a package is installed?
Because a package is not always tied up with single source, and it's update can come from any source. So we always need to check for update for your selected packages from selected sources.

@zhili1208 zhili1208 modified the milestones: Future-1, 4.5 Oct 17, 2017
@zhili1208
Copy link
Contributor

this experience is better in VS 2017 with package reference, we are still improving perf. close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants