-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Powerline is slow on OSX #1280
Comments
I can recommend running
and posting the Note: if you have some passwords in configuration (e.g. for You can also try to find out what is the culprit by removing some segments from configuration. This is not helpful if culprit is configuration reloading though. |
I'm trying to use powerline 2.0 on OS X (10.10.1) with fish shell but it's really slow. I'm running |
@etienned It is also possible that you are using Python version of client (which is slowest of the three of them). Check out |
OK, I found the problem. I was installing powerline with pip but not with I saw in the instructions that I should use Thanks for your work and time. |
@etienned They should work the either way. |
Understood. It's definitely an installation problem where |
Just for the info. After investigation, I found that, when installing powerline globally with |
Sorry for the delay. Here's a profile in this gist. |
@dandrzejewski I do not see you have done anything with the daemon. This profile is useless. If you have done something (I mean, display a few prompts) this means that you most likely have run into #1297 which is reported to prevent daemon from being ever used (effectively making powerline run an order of magnitude slower). You need to start profiling, do what is slow a few times and only then stop the daemon. If this is what you have done try using shell (requires socat) or Python clients, they are slower, but not affected by #1297 or the like (no need to post the profile if with these clients everything is fine) (clients can be taken from client/ subdirectory of this repository, they AFAIR are not installed by pip if C compiler is available). I am also wondering whether updating to post-#1297 (to 2.1 or current develop) powerline makes the issue disappear. This should be the easiest solution. |
All I have to do is press enter a few times. It takes about a second to display each prompt. That's what I did to generate that profile. I will review #1297.
|
Alright - updated powerline to version 2.1... fixed! Thanks everyone. |
I see powerline also slowing down my shell on OSX.
Here's a gist of my profiling attempt as @ZyX-I outlined above. |
@jottr This gives me
. Does gists accept uploading non-text data at all? I bet this is something stupid like CRNL changed to NL or unneeded NL at the end. |
@ZyX-I I've updated the original gist. |
I am not sure if this is related but I did recently changed my python development environment on OS X and started using pyenv at which point I discovered that my shell noticeably slowed down when running powerline. After further investigation and testing I discovered that this is caused if one installs powerline into pyenv versions of python: this creates shims for
Please let me know if anyone else encountered this problem and could verify it. If so, this should be posted to pyenv and powerline issue tracking. |
2.6 is slow on my Macbook Pro, i7 16GB RAM, OSX 10.13.1 |
@DanielYWoo Are you using the python plugin from https://github.com/sorin-ionescu/prezto by any chance? |
@N4M3Z no, just bash |
@DanielYWoo Try running:
before sourcing powerline config:
Powerline falls back to less performant solutions, if the daemon is not running. |
@N4M3Z N4 |
I'm using powerline with the default configs. The prompts take a noticeable amount of time to appear on OSX.
I've tried both zsh and bash, and I am running powerline-daemon -q in .bash_profile/.zshrc.
I'm not 100% sure that this is a bug, but I'm willing to provide any information you need.
The text was updated successfully, but these errors were encountered: