2008/10/27 François Ingelrest <[EMAIL PROTECTED]>:
> Hi all,
>
> Anyone else using the latest Ubuntu 8.10? I've installed it this
> week-end, and compiled the latest Vim as well (7.2.25).
>
> I've been using Vim all the day, and the GUI version is quite slow.
> Well, it's usable, but I can see the redrawing of the screen, it takes
> maybe a bit less than 1 sec. for the whole screen when I scroll a page
> down/up. The file itself is not that big (it's a LaTeX file, and is
> around 70KB), and actually Vim in a terminal is way faster to redraw
> the screen even when the size of the terminal is the same as my GUI
> window. I'm wondering why, since generally it's the opposite.
>
> Any suggestion?
I'm running Ubuntu-8.04 (I still haven't upgraded to 8.10) and
both vim & gvim seems fast enough. But fast or slow is
suggestive. So I just wrote a simple script to benchmark the
redraw speed and measured it with gvim as well as vim in
xterm and gnome-terminal:
Here is the benchmark script:
--- 8< --- cut here --- 8< --- cut here --- 8< ---
$ cat test-redraw-speed.vim
" Benchmark vim's redrawing speed
let i = 0
while i < 2000
1
redraw
$
redraw
let i = i + 1
endwhile
qa!
--- 8< --- cut here --- 8< --- cut here --- 8< ---
For the test, I made vim redraw the content of the file
vim7/src/README.txt. I ran the test with vim in a xterm,
in a gnome terminal and with gvim as follows:
$ time vim -u NONE -U NONE -S test-redraw-speed.vim vim7/src/README.txt
$ time gvim -u NONE -U NONE -f -S test-redraw-speed.vim vim7/src/README.txt
And here are the results below using my Linux x86 laptop
[Intel(R) Core(TM) Duo CPU T2250 @ 1.73GHz].
With vim-7.2.26 (huge, GTK2-GNOME GUI):
real user sys
------------------------------------- ------ ------ ------
vim-7.2.26 in xterm ................. 2.312s 0.968s 0.072s
vim-7.2.26 in gnome-terminal ........ 12.469s 0.972s 0.080s
gvim-7.2.26 ......................... 7.715s 5.800s 0.140s
With vim-7.1.138 (that comes with Ubuntu-8.04, GTK2-GNOME GUI):
real user sys
------------------------------------- ------ ------ ------
vim-7.1.138 in xterm ................ 2.320s 1.120s 0.088s
vim-7.1.138 in gnome-terminal ....... 15.384s 0.996s 0.056s
gvim-7.1.138 ........................ 26.614s 25.014s 0.376s
Interestingly, gvim-7.2.26 which I compiled myself is 3.44 times
faster than gvim-7.1.38 which comes with Ubuntu-8.04, at least
in this benchmark.
It would be interesting to compare with your results using
the same benchmark.
-- Dominique
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---