Skip to content

eval "$(pyenv virtualenv-init -)" super slow on MacOS Big Sur #365

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

Closed
EmilStenstrom opened this issue Aug 14, 2020 · 4 comments
Closed

eval "$(pyenv virtualenv-init -)" super slow on MacOS Big Sur #365

EmilStenstrom opened this issue Aug 14, 2020 · 4 comments

Comments

@EmilStenstrom
Copy link

EmilStenstrom commented Aug 14, 2020

Hi,

After installing the public beta of Big Sur every command I type in the terminal takes 2-3 seconds before completing. I've troubleshot it to be because of the eval "$(pyenv virtualenv-init -)" line in my bash_profile. There's something in Big Sur that makes that command super slow.

Would you mind giving a couple of hints of where I should start looking for a resolution to this? Having ls take 2-3 seconds has already started to make me crazy :)

@EmilStenstrom EmilStenstrom changed the title eval "$(pyenv virtualenv-init -)" super slow on MacOS Bug Sur eval "$(pyenv virtualenv-init -)" super slow on MacOS Big Sur Aug 14, 2020
@ngaloppo
Copy link

I have slow performance on Catalina during bash login startup. It got a bit better when I upgraded to Bash 5.x (with homebrew). It still takes 0.42 to run the eval $(pyenv virtualenv-init -) in my .bashrc.

@mrlesmithjr
Copy link

Just to add that I have also started seeing this with Mojave using ZSH.

@ipatch
Copy link

ipatch commented Nov 11, 2020

this has been an ongoing issue, i ran into this problem several months back, and i use fish shell. i can't remember what it was that i did to "resolve" the issue. but i'm sure this isn't the first time this has been reported. i'll check my dotfiles real quick and see what i can gather because i know first hand how annoying this is.

https://github.com/ipatch/dotfiles/blob/95deca3516b4e00acd4219a9e191d275849663c0/config/fish/interactive/load_pyenv.fish#L17

digging through my dotfiles, it appears to be something related to the rehashing algo, but don't hold me to that.

@furudean
Copy link

This is not specific to fish. Possible duplicate of #259

@native-api native-api marked this as a duplicate of #259 Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants