Skip to content
This repository

Poor performance after upgrading #396

Open
loganlinn opened this Issue February 03, 2012 · 41 comments
Logan Linn

I recently upgraded my version of janus and have been noticing some sluggishness when switching buffers/tabs, especially when I've had mvim open for a while. At times it takes 3-5 seconds to switch to reasonably sized buffers.

Ive been trying disabling various plugins. Noticed some speedup after disabling syntastic, but it's still not same feel as it was prior to upgrade.

Running MacVim 7.3 (snapshot 64) on a more than capable Macbook Pro.

Is anyone else experiencing this type of performance degradation? Any particular plugins I should try disabling next?

Thanks

Edit: The issues are likely due to having css-color plugin enabled and/or fugitive plugin's git information in the statusline.

Sean Abrahams

I'm also experiencing this. Running 7.3 (snapshot 62).

Disabling Syntastic improves things but not 100%.

Ellis Berner

Yes, this needs to be discussed as it is a serious issue. I am discovering it takes 20 seconds to load up 1000 line files.

Adrian Rego
Collaborator

Specific filetype? Anyway of posting that 1000 line file to use as a benchmark?

Ellis Berner
Kyle Mathews

I was seeing this as well. My speed issue seemed to be related to css-color. I see there was a recent updated to use a faster fork of the plugin, but my only fix was to just disable that plugin for now.

burningTyger

here too. Wondering whether it was related to vim-powerbar which I installed with the new janus release. I have a Sinatra project with one large ~1k app file and some small views. It always takes about 5 to 10 seconds to switch to the app file in macvim.

BTW, ever since this vim problem came up my Finder became slow too. I'm mentioning this just in case it might be a problem outside vim.

Logan Linn

I'm investigating whether having git data in the status line is causing the delay when switching tabs/buffers. I've commented out the line where fugitive#statusline() is added in. Defiantly seems to speed up tab switching, but I'm not sure if that's the original culprit. I will need to test over longer vim sessions tomorrow.

Ellis Berner

Any luck here? I know people that use fugitve and powerbar without janus and they do not have performance issues.

Zachary Adam Kaplan

i gave up janus after this.

Logan Linn

My last changes were disabling css-color plugin and removing git info from statusline. After a day of use, it feels about back to normal, which is great

I know people that use fugitve and powerbar without janus and they do not have performance issues.

The performance of a statusline with git info in it could be dependent on the repo... I have git branch displayed in my shell prompt, and in certain (larger) repos, it can get slow at times.

Elliot Larson

+1 on the poor performance. I upgraded to Lion a few days ago and was excited to try out the updated Janus, but the new version is really slow. I tried removing all but the most essential plugins, which helped a bit. At least it's usable in this state. But I just did some editing on a computer with the old version of Janus, and it's way snappier.

I really appreciate the work that was put into Janus and have enjoyed using it, but I think this is my cue to start curating my own .vim directory.

Alex Southgate

Disabling fugitive in .vimrc.before with the following fixed my performance issues:

call janus#disable_plugin('fugitive', "Poor performance") 
Ellis Berner

Damn, I loved this plugin. Especially for Gblame.

Logan Linn

I love the plugin too, and personally can't do without it. The performance issues I was having weren't from having fugitive enabled, it was from having fugitive's git information in my statusline.

Ellis Berner

I can verify this. Sped right up. Now to file an issue upstream.

JC Grubbs

Beyond just poor performance, I'm just generally experiencing a lot of annoyances. For example, the CtrlP index seems to hang around forever before it refreshes. I really don't like the changes to window status bar, just kind of busy and confusing. When shutting down MacVim I now get all kinds of errors in the terminal window from which it was launched.

burningTyger

disabling fugitive also disables vim-powerline which I came to love a lot. For some reason I switched over to Terminal vim and it seems a lot more responsive than MacVim. Maybe all of you could give that a go as well and see if it's MacVim related for you too?

Petrik de Heus
p8 commented February 19, 2012

Just changing the statusline fixed my performance issues

set statusline=%f\ %m\ %r

Trevor Rosen

+1 for status line fixing issues. Fugitive worked fine before the big changes of Jan 2012 and seems to still work fine (i.e. no slowdown) after making the status line fix.

Ellis Berner
Adrian Rego
Collaborator

I'm good with removing Fugitive from the default statusline. YADR bundles Fugitive as well, but doesn't add git info to the statusline.

/cc @eMxyzptlk

Wael M. Nasreddine
Collaborator

I'm good as long as there's a wiki entry (or readme entry) informing people how to get it back..

Adrian Rego
Collaborator

Syntastic and Fugitive have been removed from the default statusline. Visit the wiki, Statusline, for info on how to customize your statusline.

Logan Linn loganlinn closed this February 22, 2012
Tony Lotts

I'll chime in here since it seems most of those with performance issues are on macvim. I use vim in the terminal with fugitive statusline customizations (2 installs with Janus, one my custom vimrc) I have never experienced performance issues related to the fugitive statusline customizations*.

Are you sure this is not isolated to macvim?

*I have seen the hang ups with ctrl-p.

Ellis Berner

I believe it's isolated to MacVim.

Adrian Rego adrianrego reopened this February 22, 2012
Adrian Rego
Collaborator

Isolated to MacVim running in gui mode, not the terminal correct?

Tony Lotts

I've never seen it in the terminal.

Jay Becker

not to confuse the issue, but i had slowdowns with macvim that went away when i disabled css-color. fugitive statusline doesn't seem to slow anything down, although my git repo is probably smaller than what most of you are working with.

Nikita Afanasenko

I'm experiencing same tab/buffer switching issue in gvim.

Steve

Disabling css-color fixed it for me. Which is sad because I liked seeing the colors, but oh well.

Marcelo Silveira
mhfs commented March 07, 2012

I can consistently reproduce the slowness enabling/disabling css-color (MacVim). It's most noticeable for me while switching tabs. Sometimes it takes several seconds to switch to specific tabs (specially yaml files).

jtmkrueger

The fix suggested by @p8 got my iterm vim sped up when dealing with multiple tabs. Thanks!

Tim Pope
tpope commented March 19, 2012

For the record, I just stumbled into this, tried a default janus install rewound to d2fe86e (which still had the statusline), and couldn't reproduce any performance issues. If someone who can still reproduce the issue wants to open an issue on fugitive, I'll be happy to try to narrow it down.

I was super performance-conscious when writing fugitive#statusline(), so this kind of surprises me, as does the fact nobody reported it.

Billy Vong

I added fugitive statusline back in and disabled css-color and everything seems fine so far. I believe css-color was the culprit for my slowdowns and not fugitive statusline.

Achilleas

We disabled fugitive and css-color and things sped right up. I am also disabling tagbar, I don't use it anyway. MacVim became pretty unusable at some point, I got it back to working fine again. thanks for the tips guys.

Aristotle Pagaltzis
ap commented March 21, 2012

I have pushed an update to vim-css-color to (try to) address ((a big) part of) the slowness issue per ap/vim-css-color#11 – if any of you who have written here would like to give it whirl and tell me whether it improves things for you, I would greatly appreciate your time.

Steve

@ap I've tried out the most recent commit of vim-css-color. Works very well for me -- no more slowness issues. Nice work! It looks and performs great! :)

Bruno Panara

Is there a way to go back to the pre-Jan 2012 status line?

Adrian Rego
Collaborator

@ergelo checkout the wiki for some options. https://github.com/carlhuda/janus/wiki/Statusline

I use vim-powerline.

Bruno Panara

@adrianrego powerline is awesome, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.