-
-
Notifications
You must be signed in to change notification settings - Fork 61
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 install possibly from downloads #1339
Comments
Just to check, could you download I do think however that it's probably not that, and instead maybe to do with how we stream to tar directly @NobodyXu? |
Sure! $ time { iwr https://github.com/nextest-rs/nextest/releases/download/cargo-nextest-0.9.57/cargo-nextest-0.9.57-x86_64-pc-windows-msvc.tar.gz -OutFile out.tar.gz }
Days : 0
Hours : 0
Minutes : 0
Seconds : 1
Milliseconds : 224
Ticks : 12242446
TotalDays : 1,41694976851852E-05
TotalHours : 0,000340067944444444
TotalMinutes : 0,0204040766666667
TotalSeconds : 1,2242446
TotalMilliseconds : 1224,2446
PS: function time($block) {
$sw = [Diagnostics.Stopwatch]::StartNew()
&$block
$sw.Stop()
$sw.Elapsed
} |
I've checked the log, downloading and processing the However, there's a 45s gap before that due to rate-limit. Downloading and extract the |
cc @simonsan I think you encountered a similar problem here. |
It's really strange, I can install |
Only checkIt takes 1 minutes for not even installing anything, for example. cargo binstall cargo-nextest -y
WARN Failed to read git credential file C:\Users\dailyuse\.git-credentials err=Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }
INFO resolve: Resolving package: 'cargo-nextest'
INFO resolve: cargo-nextest v0.9.57 is already installed, use --force to override
INFO Done in 60.6370694s Log for that here: cargo-binstall.log With
|
I've installed commit 3e67e36 and followed the same steps as before. Now then, as for that gap, I think I have an idea. I've taken a look at the logs, and I'm starting to suspect Either way, these are my current findings in the short time I had. Tomorrow, I'll send the logs (after I've cleaned them a bit) so we can take a look further. |
Thank you @Sculas ! trust-dns-resolver recently released v0.23.0, so I wonder if upgrading to it would fix the problem. |
Sorry that it took so long, but here's the log file (gist because it's 31MB, lol): raw gist |
After some investigation I guessed the potential problem of this issue is seanmonstar/reqwest#431 (comment). I tried manually set-upping name server config for reqwest client with |
Well, isn't this interesting! I never thought I needed to mention it, but yeah, I have VMware installed, so I also have all of these network adapters (but from VMware instead of VirtualBox), as mentioned in the comment you linked above. You know what? That might also explain why the logs say that the name servers don't match because those name servers are the IPv6 loopback address! (and I'm presuming I've installed your patch, and... wow. Look what we have here: # cargo binstall cargo-nextest -y
INFO resolve: Resolving package: 'cargo-nextest'
WARN The package cargo-nextest v0.9.57 (x86_64-pc-windows-msvc) has been downloaded from github.com
INFO This will install the following binaries:
INFO - cargo-nextest.exe (cargo-nextest.exe -> C:\Users\$USER\.cargo\bin\cargo-nextest.exe)
INFO Installing binaries...
INFO Done in 1.4159677s I can't thank you enough @GNQG for finding the problem and fixing it! |
So, I got curious. It seems like just disabling the |
@GNQG Thanks for your patch! I've skimmed through it and it seems more reasonable to be in reqwest, can you open a PR in upstream? I will upgrade reqwest to latest as soon as it is released. |
What a ride! <3 |
After thinking on this again, @GNQG I am willing to accept your patch and cut a new release to fix this issue. Then we can consider upstreaming this to reqwest. |
@GNQG If you are busy, I can merge the code into main for you. |
Moving from #19 to avoid pinging everyone with more back and forth:
I've done the same steps as before (uninstall, turn off AV), here's the command I ran:
$ cargo binstall cargo-nextest -y --log-level trace --json-output
Log: contents.log
Looking at the log myself, the 2 things that take the longest are the download from crates.io and the download from GitHub. Why is that? I have a gigabit fiber connection (and a speed test proves that), so it's not my internet being slow. I'm clueless.
Originally posted by @Sculas in #19 (comment)
The text was updated successfully, but these errors were encountered: