[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: slow vim



On Tue, 28 May 2013 09:02:10 +0000
låzaro <netadmin@lex-sa.cu> wrote:

> Hi, I removed these packages and install vim-nox, but I would like to use
> gnome-terminal with mutt... there are any solution for that?
> 

Hi.

I'm not aware of any solution regarding libvte9, but it seems that libvte9 is not the case here.
That strace file you've send me turned out interesting.

Basically:

1) You start mutt, pid 7703.

2) Mutt forks, and executes vim.basic, pid 7727.
Now we can rule out an X hypothesis, as vim.basic doesn't know anything about X.

3) Vim.basic, in turn, loads an impressive bunch of its' plugins, and finally:

7727  08:52:51.424329 stat64("/bin/sh: 1: ispell: not found\n", 0xbfbbbed0) = -1 ENOENT (No such file or directory)
7727  08:52:51.424441 stat64("/usr/lib/ispell/", 0xbfbbbed0) = -1 ENOENT (No such file or directory)
7727  08:52:51.441003 stat64("/usr/local/lib/ispell/", 0xbfbbbed0) = -1 ENOENT (No such file or directory)

Tries to locate ispell.

4) Failing that, it executes find (pid 7732), checking out something in the depths of /usr/local/lib: 

7732  08:52:51.445337 execve("/bin/bash", ["/bin/bash", "-c", "(find /usr/local/lib -name \"*.ha"...], [/* 43 vars */] 

5) Since then, vim waits - waitpid(7732, ...) - for find from 08:52:51 until 08:53:16 (time format is hh24:mm:ss).


So, something (one of vim plugins, probably), launches find at vim start, and that probably explains the whole mess you have.
I cannot point to the offending plugin, but you can easily disable them one by one, and see which makes the difference.



PS Please don't CC me, I'm subscribed to this list.

PPS strace(1) is your best friend. Have it, love it, use it.


Reply to: