unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: Slow GTK3 redisplay
Date: Mon, 13 Aug 2012 20:32:31 +0300	[thread overview]
Message-ID: <837gt27l5c.fsf@gnu.org> (raw)
In-Reply-To: <5028F5EA.40609@yandex.ru>

> Date: Mon, 13 Aug 2012 16:41:14 +0400
> From: Dmitry Antipov <dmantipov@yandex.ru>
> 
> Some time ago I did the following simple redisplay benchmark:
> 
> (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))))))
> 
> And here are some results of running the code above over xdisp.c,
> with different X toolkits and without it. Of course, emacs -Q was used.
> GTK3 is 3.2.4, GTK2 is 2.24.8, OpenMotif is 2.3.3, Xaw3d 1.5E, Xaw 1.0.8.
> 
> Default GUI means menu bar, tool bar and scroll bar enabled. Minimal GUI
> means all of the above is disabled, i.e. the frame state after
> 
> (progn (menu-bar-mode 0) (tool-bar-mode 0) (scroll-bar-mode -1)).
> 
> Numbers are in seconds.
> 
>            Default GUI Minimal GUI
> GTK3:        108          34
> GTK2:         41          34
> OpenMotif:    36          34
> Lucid:        38          34
> None:         36          33
> 
> Here GTK3 GUI is _painfully_ slow. Can someone explain this? Is something
> wrong with my GTK3 setup? Am I running heavyweight theme, or what?

FWIW, there's almost no difference on MS-Windows: 54.8 sec vs 54.05,
so it's similar to other toolkits except GTK3.

Sounds like purely a GTK3 problem (IOW, not interesting as far as
Emacs internals go).

Btw, I hope you know that your benchmark is exceedingly unrealistic,
compared with 90% of redisplay operations in real life.  It can be
used for comparison with itself, but it is not indicative of the
display speed in any way, AFAIU.



  parent reply	other threads:[~2012-08-13 17:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 12:41 Slow GTK3 redisplay Dmitry Antipov
2012-08-13 13:59 ` Tassilo Horn
2012-08-13 17:34   ` Eli Zaretskii
2012-08-13 17:32 ` Eli Zaretskii [this message]
2012-08-14 13:04   ` YAMAMOTO Mitsuharu
2012-08-14 16:17     ` chad
2012-08-14 23:55       ` YAMAMOTO Mitsuharu
2012-08-13 19:15 ` Jan Djärv
2012-08-14  9:25   ` Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837gt27l5c.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).