-
Notifications
You must be signed in to change notification settings - Fork 28
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
slow #69
Comments
@dylnmc sorry to heard about this! Can you post what versions you're using? I unfortunately don't have ready access to a windows box, but I can at least look into the arch side. |
At the time of this writing: it was whatever version was on github, as I was and am using vim-plug currently: @ work -> will check again when I get home if it is fast enough on arch linux |
Oh I'm sorry I meant what version of vim are you using? |
at work:
at home: the newest version from github update ~weekly. by the way: the plugin seems faster now on my windows machine. I am afraid that what I was experiencing might not be that replicable (it seemed to happen only on files that I had been working on for a while and that had a lot of changes in them, but I can't be certain). edit: it's definitely way faster. let me check out on arch @ home, then I will close if seems to be resolved. I was using UndoTree (well, I only really use tree visualizers a little, anyway), but maybe if it keeps being fast, then I'll switch back. |
I promise I wasn't just making up the slowness (it was particularly slow on windows), but it doesn't seem to be an issue right now on any of my machines. I think there was one or two updates in the meantime, but I don't even know if it was mundo's fault. cheers, |
Thanks anyway - your double checking is appreciated! |
I hate to reopen the issue, and while I love mundo, it is very nonperformant in my (fairly up-to-date) 32-bit version of gvim.exe on windows 10. I am not sure if this does happen - for I have not looked at the code - but it seems like mundo generates data for searching capabilities that other undo tree visualisation plugins lack, and this seems to take a long time on windows (while it may be performant on UNIX and its variants). I would like to use mundo, but I fear opening it because when I have more than 50 changes, it can take over 10 seconds to open. If I have hundreds of changes, it can take over half a minute to open. Note that this only happens the first time when opening mundo - so that should help you narrow down what is causing the slowness. I believe I saw you mention somehwere that windows has not been tested thouroughly, and I don't necessarily expect you, the maintainer, to test on windows if you really do not want to, but if someone else can test on windows and notices the same thing, then a patch would be very welcome and would help me out a lot! Thanks, |
I started noticing major lag with undo operations when syntax is enabled. If you do Thanks |
In order to temporarily fix the issue, I had to go through quite a few hoops, since some functions (the ones checking if mundo is open) are not exposed: " toggle mundo tree
function! s:mundoToggle()
let cwin = -1
let syn = ''
let synflag = 0
if buffer_name('%') !~# '^__Mundo\%(_Preview\)\?__$'
let synflag = 1
let cwin = win_getid()
let syn = &syntax
setlocal syntax=
endif
MundoToggle
if synflag
let winflag = cwin !=# -1 && buffer_name('%') =~# '^__Mundo\%(_Preview\)\?__$'
if winflag
call win_gotoid(cwin)
endif
execute 'setlocal syntax='.syn
if winflag
wincmd p
endif
endif
endfunction
nnoremap <leader>u :call <sid>mundoToggle()<cr> |
I'm experiencing the same slow behavior in big files with a lot of persistent history (like 2 to 3 minutes to open mundo the first time), if I do Edit: The Edit 2: Sorry, I'm on Neovim at HEAD in a Linux terminal (Alacritty). |
mundo used to be the fastest.
now:
jjjjj
even just like 4-5 times.something bad happened. roll back or something. maybe it's just me, but it's affecting all of my vim sessinos on all the machines I use.
The text was updated successfully, but these errors were encountered: