Open synchroazel opened 2 years ago
I've noticed the same issue on an intel iMac where I freshly installed Monterey (12.6.1) and Anaconda (2022.10). It is really annoying!
I've noticed slow startups too on my Mac. But I'm going to say. We are not anaconda. We can only help with Miniforge questions.
I think it has to do with some telemetry of Mac . Not too sure.
Am also on a Mac (M1 Pro) and use Miniforge. Have not noticed this issue.
It is worth noting that there are quite a few packages in the base
environment (listed above). Generally it is recommended to keep the base
environment slim and install other things in new environments. Not sure whether this is the cause of the issue, but it could be part of it
At the time I wrote this, I just moved eval "$(/<path-to-conda>/bin/conda shell.zsh hook)"
which was previously in my .zshrc
to a shell file in my home and symlinked it to anaconda
, so that I could start anaconda only when I want it, and not every time I open up a terminal. I understand it’s not a solution, but it was a nice way to "speed up" my terminal startup.
But recently I happened to reinstall miniforge, and the problem was not there anymore. I'd say it is probably as @jakirkham said, since I've left the base
environment untouched since the reinstall.
@jakirkham Hi did you notice a difference in the following cases?
# >>> conda initialize >>>
part# >>> conda initialize >>>
in bash_profile or zprofile (default)I find the time in each terminal startup is 1<2<3.
I am more interested if you find a time diff. in case 1 and 2.
Thx
What sort of operations take place during this startup period? Is it possible to slim it down, maybe profiling it?
I think I figured this out, at least in my case. My workplace had some compulsory software installed on my Mac. including Microsoft Defender. This scans every single file opened, in the case of Anaconda startup this is likely thousands of teeny python files causing a several second slowdown.
If I stop this scanning from happening, by telling it to exclude the whole anaconda file tree, then startup is now snappy again.
Solution to issue cannot be found in the documentation.
Issue
Hi there o/ I recently installed Miniforge on my MacBook Pro 14" with M1 Pro, and the startup time of Terminal increased to 4-5 seconds (it was < 1 sec before Miniforge, when I had Anaconda). Without the
.zshrc
file, located in my home folder, the terminal startup is fast again.Here is the content of my
.zshrc
file:Is that some issue related to Miniforge? Is it possible to achieve faster Terminal startup times?
Installed packages
Environment info