Repository navigation
Fix multiple sources (performance) - #2499
Conversation
…r the full framework
- Remove magic strings for known nuget sources - Improve error handling of new system.net.http library - Do not convert v3 sources to v2 sources when parsing them -> this lead to a huge performance bottleneck for myget.
| | "http://nuget.org/api/v2" -> Constants.DefaultNuGetStream.Replace("https","http") | ||
| | "https://www.nuget.org/api/v2" -> Constants.DefaultNuGetStream | ||
| | "http://www.nuget.org/api/v2" -> Constants.DefaultNuGetStream.Replace("https","http") | ||
| | url when url.EndsWith("/api/v3/index.json") -> url.Replace("/api/v3/index.json","") |
| "",parserF "" | ||
| let! text,depsFile = async { | ||
| // TODO: Fixme, something is wrong on testcase #1341 | ||
| if url <> "file://" then |
There was a problem hiding this comment.
I think this was broken ever since... Something fishy is going on when paket tries to find the paket.dependencies file from a http file:///C:/.... entry. This was noticed, because HttpClient no longer supports file:/// and I could see in the debugger that this code tries to download file:// which looks horribly wrong. But as this is not related to this PR I added this "hack" as I have no idea what this is supposed to do.
|
I'm wondering if the issue still remains considering that Paket (5.84.0) takes 1m 40s to check for outdated packages (and it reports almost that amount of time as being blocked, whatever that means exactly). |
|
@mnmr do you say we regressed on this depsfile? From the timing I'd say the reason are the fallbacks recently introduced but that means it should be resolved again with the fix warnings pr... If you mean a different depsfile please open an issue to discuss... |
|
I'm afraid I'm not in a position where I can answer that - I only just downloaded Paket yesterday, so do not have any reference point for earlier behaviors. I just observed that it was NuGet-like slow ;) and came across this issue while trying to find out if this was expected or not (which I'm still not entirely sure about). |
Fixes #2369
Main problem was using the v2 api for myget which seems to be painfully slow. We always used v2 for all sources besides nuget, even when v3 uri was specified.
@forki was this intended?
Solves
in
I also added other performance improvements which brought the runtime down to 4 Minutes (instead of hours), but switching to myget was the final breakthrough:
GetVersionrequests of a SINGLE source sequentially (because we should already put the fastest one first in the common case -> fewer requests)The install-process is taking more and more time and users are wondering what paket is doing so I added some output