-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conda 23.7.3 start-up time extremely slow compared to 23.5.2 #13067
Comments
@asalaria-cisco interesting, a few followup questions:
|
@kenodegard i just noticed this happening to me too on
$ time conda --version
conda 23.7.3
real 0m17.788s
user 0m0.290s
sys 0m1.825s
$ time conda --version
conda 23.7.2
real 0m0.154s
user 0m0.156s
sys 0m0.011s conda info
conda configNA conda list
|
I did some further testing with two machines, native linux, native windows and wsl. For me, It seem to run slow only in wsl when the $ echo $PATH
/home/aaravind/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/system32/wbem:/mnt/c/windows/system32/windowspowershell/v1.0/:/mnt/c/windows/system32/openssh/:/mnt/c/program files/git/cmd:/mnt/c/program files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/ajith/miniconda3:/mnt/c/Users/ajith/miniconda3/Library/mingw-w64/bin:/mnt/c/Users/ajith/miniconda3/Library/usr/bin:/mnt/c/Users/ajith/miniconda3/Library/bin:/mnt/c/Users/ajith/miniconda3/Scripts:/mnt/c/Users/ajith/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/ajith/AppData/Local/Programs/Microsoft VS Code/bin
$ TEMP_PATH=$PATH
$ time conda --version # this runs slow
conda 23.7.3
real 0m8.785s
user 0m0.150s
sys 0m1.021s
$ PATH=/home/aaravind/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib
$ time conda --version # this runs fast after removing the windows mounted path
conda 23.7.3
real 0m0.152s
user 0m0.151s
sys 0m0.000s
$ PATH=$TEMP_PATH
$ time conda --version # adding the windows mounted path makes it slow again
conda 23.7.3
real 0m9.109s
user 0m0.181s
sys 0m1.020s |
@aaravind100 thanks for running these tests, this confirms my suspicion that the recent change #13006 caused this slowdown |
I am also experiencing the slow conda start-up time in WSL Ubuntu. I'm happy to help test out any release candidates that address this issue. Thanks for your quick response. time conda --version
## conda 23.7.3
##
## real 0m33.811s
## user 0m0.741s
## sys 0m3.465s
mamba install conda=23.7.2
time conda --version
## conda 23.7.2
##
## real 0m0.319s
## user 0m0.269s
## sys 0m0.040s |
You can try the canary build off conda's main branch |
Thanks @dholth! I confirmed that the canary build has a quick startup time on WSL: conda install -c conda-canary/label/dev conda
time conda --version
## conda 23.7.4.dev62
##
## real 0m0.589s
## user 0m0.231s
## sys 0m0.077s However, I see that your PR #13070 from yesterday hasn't been merged into main yet. I assume this means the update in PR #13035 is responsible for the improvement |
That's correct. Yesterday's PR is a tiny improvement on the existing fix. |
|
What happened?
Today I did a fresh install of conda. This installed conda 23.5.2. Conda start-up time is excellent:
However, when I upgrade conda, it installs version 23.7.3 and the start-up time shoots up to more than 45 seconds!
This is not limited to
conda env
, any other invocation ofconda
has this 45 seconds start-up overhead!Conda Details
conda info
conda config
conda list
The text was updated successfully, but these errors were encountered: