-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
pyenv-virtualenv is very slow on macOS Sequoia #490
Comments
I did a macOS 14.7 Sonoma clean install on an external SSD and At least on my platform, macOS Sequoia has a huge issue with some shell programs. I recommend to postpone the Sequoia upgrade until this is fixed on macOS side. |
I encountered this same problem yesterday on my Intel Mac running macOS 14.7 (Sonoma) when I updated from Xcode 15.3 to Xcode 16. I presume that your fresh install of macOS 15 (Sequoia) had Xcode 16, and I'd be curious to see whether downgrading only Xcode without downgrading the OS would solve the problem. I'm also curious about whether this is a problem only on Intel Macs or if it's a problem on Apple Silicon as well. I noticed a variety of time env -i bash -cx 'export PYENV_DEBUG=1; command pyenv sh-activate --quiet' With Xcode 16, the command takes over 10 s to execute, while with Xcode 15.3, the command takes ~0.3 s to execute. I can help with debugging the problem because I can't delay upgrading Xcode indefinitely. However, I have no clue how to profile shell scripts. If anyone has tooling recommendations, I can hopefully figure out exactly where the regression is happening. |
Also add the same |
I forgot to mention this, but I switched to an Apple silicon laptop a week or two after encountering this issue, and I had no problems using Xcode 16 on it. I think this regression is purely for Intel Mac users. Someone else is obviously free to debug this, but I'm not going to spend the time debugging it myself. |
Too many issues will kill our team's development velocity, drastically.
Make sure you have checked all steps below.
Prerequisite
pyenv-virtualenv
plugin only. Please refrain from reporting issues of other plugins here.Description
I was using
pyenv
&pyenv-virtualenv
on macOS 12.x Monterey for 2 years with great success.Yesterday, I updated to macOS 15.0 Sequoia (clean install).
The shell was very slow with
pyenv-virtualenv
autoloading enabled.It takes around 1.2 seconds when hitting a blank line in the shell.
I downgraded to macOS 13.x Ventura (clean install again) and the shell was instant again.
I don't expect you to fix macOS, but I wanted to report my experience with Sequoia to see if others users have the same problem. Apart from
pyenv-virtualenv
,pyenv
+jenv
+rbenv
were also a bit slower. The rest of the apps were working well. I suspect Apple to have changed something with the terminal / shell...I'll stick to Ventura for sometimes, and I'll give a try to Sonoma to see.
The text was updated successfully, but these errors were encountered: