[Top][All Lists]

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

Re: Slow GTK3 redisplay

From: Tassilo Horn
Subject: Re: Slow GTK3 redisplay
Date: Tue, 14 Aug 2012 11:25:34 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Jan Djärv <address@hidden> writes:

Hi Jan,

> 2012-08-13 14:41, Dmitry Antipov skrev:
>> (defun scroll-benchmark ()
>>    (interactive)
>>    (let ((oldgc gcs-done)
>>          (oldtime (float-time)))
>>      (condition-case nil (while t (scroll-up) (redisplay))
>>        (error (message "GCs: %d Elapsed time: %f seconds"
>>                        (- gcs-done oldgc) (- (float-time) oldtime))))))
> This is very syntetic.  But I made a speed up, please try again.  The
> problem is that the display engine is not made for external tool bars,
> so we (before the fix) redraw tool bars for Gtk+ on just about every
> redisplay.

Before your change scrolling once with GTK3 toolbar took 187 seconds,
the second scroll took 116 seconds.  Now, after your change I'm at 94
seconds for the first and 14 seconds for the second run.  That's about
as good as without GTK toolbar.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]