Friday, May 7, 2021

Re: RedHat Athena: GUI vim is extremely slow using terminal

Aleksandr Jakušev wrote:

> We have Red Hat Enterprise Linux Server release 7.8 (Maipo), which by
> default has vim 7.4 installed. I am trying to compile the latest vim 8.2
> (official release, without later patches). I went the usual way: download
> the sources, configure (default settings, only --prefix redefined), make,
> make install ... And got the following build:
>
> ======================================================================
> VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 7 2021 15:42:09)
> Compiled by xxxxxxxxxxx
> Huge version with X11-Athena GUI. Features included (+) or not (-):

[...]

> ======================================================================
>
> The problem with this build is that the GUI version is very slow. For
> example, it takes about 6 sec to start. Below are some unnecessary large
> timings from the startup profiling:
>
> ==================================================
> 161.380 159.404: expanding arguments
> ...
> 1344.137 1143.949 1143.949: sourcing .../share/vim/vim82/ftplugin/man.vim
> ...
> 5302.964 *3903.539*: starting GUI
> ==================================================
>
> Once started, gvim more or less works, until I decide to use the terminal
> functionality. This is where the things become really indecent. Forget
> using the terminal interactively, a simple ":term ls -l" takes several
> minutes to run. Gvim is unresponsive during this time. Once the terminal
> window becomes finished, gvim becomes responsive again, but will
> periodically hang if you decide to navigate in the finished terminal
> window. During gvim hanging, the call stack looks like this:
>
> ==================================================
> PID 2468 - process
> TID 2468:
> #0 0x00007f3469b62c20 poll - /usr/lib64/libc-2.17.so

[...]

> #16 0x000000000040d6f4 - 1 - .../usr/local/bin/vim
> ==================================================
>
> Which makes me thing that the problem is GUI/X server related. And true,
> this does not happen in the console verion of vim. FYI, My X server is one
> of the latest versions of vcxsrv running on Win 10.
>
> I believe that the version of vim 7.4 that comes preinstalled is faster.
> Unfortunately, vim 7.4 does not have the terminal functionality to compare
> the same things, but its start-up times are much faster, without the lags
> above (same vimrc is used). The vim 7.4 is built with -DFEAT_GUI_GTK and
> various gtk header folders included. I don't have those headers on my
> server, that's why GTK GUI is not used by configure...
>
> Any advice would be appreciated.

You are using an X server running on MS-Windows? I have had nothing but
problems with that. I haven't tried for years though. Can you run with
a native X server?

--
"After a few years of marriage a man can look right at a woman
without seeing her and a woman can see right through a man
without looking at him."
- Helen Rowland

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/202105071856.147IuVkk1451257%40masaka.moolenaar.net.

No comments: