From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Slow GTK3 redisplay Date: Mon, 13 Aug 2012 16:41:14 +0400 Message-ID: <5028F5EA.40609@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344861536 20838 80.91.229.3 (13 Aug 2012 12:38:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2012 12:38:56 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 13 14:38:52 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T0tv2-0005oJ-0o for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2012 14:38:52 +0200 Original-Received: from localhost ([::1]:60417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0tv1-0002Ls-3x for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2012 08:38:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0tuz-0002Ll-Bh for emacs-devel@gnu.org; Mon, 13 Aug 2012 08:38:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0tuy-0008Ua-DS for emacs-devel@gnu.org; Mon, 13 Aug 2012 08:38:49 -0400 Original-Received: from forward2.mail.yandex.net ([77.88.46.7]:40360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0tuy-0008US-2V for emacs-devel@gnu.org; Mon, 13 Aug 2012 08:38:48 -0400 Original-Received: from smtp4.mail.yandex.net (smtp4.mail.yandex.net [77.88.46.104]) by forward2.mail.yandex.net (Yandex) with ESMTP id 8302E12A0A9C for ; Mon, 13 Aug 2012 16:38:44 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1344861524; bh=3aBoP7hap4ztKwhI+zCtzcKXWEmKKPioh92xOPGlJcM=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=WONexVR8yOUo0nSaCgjZqp8S/J9YKrb5kNgTLhYiGVd4bETUFE4MPrs6WyVOn32f4 LJjvunRKeOgRqQzhgmGDSqxNOIldUeWjKZ8JUgheQ9XdLTn/x4ifEJdVvPVL4dn9ag JUj8RhaT9QLbmfWyyOzkiseOBDocUACV9JuHYfwE= Original-Received: from smtp4.mail.yandex.net (localhost [127.0.0.1]) by smtp4.mail.yandex.net (Yandex) with ESMTP id 704355C03BB for ; Mon, 13 Aug 2012 16:38:44 +0400 (MSK) Original-Received: from 200.gprs.mts.ru (200.gprs.mts.ru [213.87.133.200]) by smtp4.mail.yandex.net (nwsmtp/Yandex) with ESMTP id cgniTpYp-chnWnvgQ; Mon, 13 Aug 2012 16:38:44 +0400 X-Yandex-Rcpt-Suid: emacs-devel@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1344861524; bh=3aBoP7hap4ztKwhI+zCtzcKXWEmKKPioh92xOPGlJcM=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=qxOMEllN6fEoBLj1IsivJKhTH2sUEqlI6M4yQbs8MfO0czUH4MsW4Zpvgmmo6wW5w Co+YauhbaCap7Vi2153+l5RMSHvEujpFHNVFFrQy9IQD42O881EtnaZrHzfHapjlcG xo4Hqv3EiUWXXY6pf/YS3Wd+rmYikM4AIvEgYQrY= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.46.7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152472 Archived-At: 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? Dmitry