On 04/11/08 23:15, Matt Wozniski wrote:
> On Tue, Nov 4, 2008 at 4:35 PM, Tony Mechelynck wrote:
>> On 04/11/08 22:25, Matt Wozniski wrote:
>>> On Tue, Nov 4, 2008 at 3:48 PM, Tony Mechelynck wrote:
>>>> Even in Console mode, Vim compiled with +x11 will try to connect to the
>>>> X server at startup because it still uses X for the +clipboard and/or
>>>> +clientserver features, to save and restore the console window title,
>>>> its contents (+xterm_save), and to "save itself" at X-windows closedown
>>>> (+xsmp or +xsmp_interact).
>>> I'm not sure I follow - what does this have to do with his results?  X
>>> connection or no X connection shouldn't affect the time spent
>>> redrawing, and certainly not by 50 seconds.
>> no X connection affects the time starting up, because Vim waits for its
>> connection with the X server to time out. This may or may not influence
>> the results shown above, depending on how they are collected (they will
>> if it is from invoking to exiting Vim) but it's always good to know.
>
> It might be good to know, but it's certainly not relevant to whatever
> problem these people are seeing...  My WAG is that they're seeing a
> font rendering regression (Pango? Freetype?), since I can reproduce
> this problem in Debian Unstable with GTK2-GNOME gvim (105 seconds for
> Dominique's benchmark) but not with the X11-Motif gvim (14 seconds for
> Dominique's benchmark) or xterm/screen (13 seconds).  In GTK2 gvim, I
> used "DejaVu Sans Mono 7", in the others I use
> "-misc-fixed-medium-r-semicondensed--13-120-*-*-c-60-iso10646-1".
>
> Yep - just tested, and sure enough... switching my xterm font to
> DejaVu size 8 brings the Dominique's benchmark up to 94 seconds from
> 13.
>
> ~Matt

IIUC, "Fixed" is a bitmapped font while "DejaVu Sans Mono" and even 
"Courier New" are TrueType or OpenType scalable fonts. That could indeed 
make a difference. Try running GTK2 gvim with

        set gfn=Misc\ Fixed\ Semi-Condensed\ 13

(which ought to be the same as in your Motif gvim) and see if it doesn't 
redraw much faster than with DejaVu. (Of course, Fixed is uglier. You 
can't have your cake and eat it, or for Dominique and François, the 
butter and the cash for the butter.)


Best regards,
Tony.
-- 
"I'd love to go out with you, but I have to stay home and see if I
snore."

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to