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

Investigate slow installation (merging file trees) on windows #1164

Open
hasufell opened this issue Nov 25, 2024 · 2 comments
Open

Investigate slow installation (merging file trees) on windows #1164

hasufell opened this issue Nov 25, 2024 · 2 comments

Comments

@hasufell
Copy link
Member

hasufell commented Nov 25, 2024

Screenshot_2024-11-25_14-21-15

https://discord.com/channels/280033776820813825/505370075402862594/1310055203709390858

@andreasabel
Copy link
Member

andreasabel commented Jan 20, 2025

Yes, this is really very slow, on my (old) Windows machine this step takes more than 15min. (Running under git bash.)

After turning off "real-time protection" in the "Windows Security / Virus Protection" things sped up quite a bit: from ghcup getting <1% CPU to getting around 10% CPU.

With real-time protection off, I can get an install done in <8min, which is still longish:

$ time ghcup install ghc 9.8.4
[ Info  ] downloading: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.9.yaml as file C:\ghcup\cache\ghcup-0.0.9.yaml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[ Warn  ] Could not parse version of stray directorystack-2.7.5.exe.tmp
[ Warn  ] New ghc version available. If you want to install this latest version, run 'ghcup install ghc 9.12.1'
[ Warn  ] New cabal version available. If you want to install this latest version, run 'ghcup install cabal 3.14.1.1'
[ Warn  ] New stack version available. If you want to install this latest version, run 'ghcup install stack 3.3.1'
[ Info  ] verifying digest of: gs.exe
[ Info  ] downloading: https://downloads.haskell.org/~ghc/9.8.4/ghc-9.8.4-x86_64-unknown-mingw32.tar.xz as file C:\ghcup\tmp\ghcup-d9c1e195dccae9c8\ghc-9.8.4-x86_64-unknown-mingw32.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  322M  100  322M    0     0  2839k      0  0:01:56  0:01:56 --:--:-- 3104k
[ Info  ] verifying digest of: ghc-9.8.4-x86_64-unknown-mingw32.tar.xz
[ Info  ] Unpacking: ghc-9.8.4-x86_64-unknown-mingw32.tar.xz to C:\ghcup\tmp\ghcup-2a0f46cb130a58f8
[ Info  ] Installing GHC (this may take a while)
[ Info  ] Merging file tree from "C:\ghcup\tmp\ghcup-2a0f46cb130a58f8\ghc-9.8.4-x86_64-unknown-mingw32" to "C:\ghcup\ghc\9.8.4"
[ Info  ] GHC installation successful

real    7m23.913s
user    0m0.015s
sys     0m0.031s

@FranklinWilson
Copy link

FranklinWilson commented Jan 28, 2025

Recently had the same experience with very slow 'merging file tree' on my Windows 11 PC.
As andreasabel mentioned, turning off real-time protection (Windows Security -> Virus and threat protection -> manage settings) made all the difference, completed in a matter of seconds.

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

3 participants