4 ms·
Interesting. In my case, according to `zprof`, 80% of my startup time came from nvm_auto from nvm (node version manager)
by ngshiheng 4y ago
Interesting. In my case, according to `zprof`, 80% of my startup time came from nvm_auto from nvm (node version manager)
- eyelidlessness 4y agoYeah, nvm is notoriously slow. Volta[1] is much faster. 1: https://volta.sh/ https://volta.sh/
- it_citizen 4y agoAdd this to your zshrc # This lazy loads nvm nvm() { unset -f nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm nvm $@ } Now, nvm only loads when it is explicitly called instead of loading in every shell. In my case, it made a very visible speed difference.
- chrisweekly 4y agoI switched from nvm to fnm for this (and other) reasons a couple years ago. Huge improvement on all fronts.