From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Slow GTK3 redisplay Date: Mon, 13 Aug 2012 20:32:31 +0300 Message-ID: <837gt27l5c.fsf@gnu.org> References: <5028F5EA.40609@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344879211 10474 80.91.229.3 (13 Aug 2012 17:33:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2012 17:33:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 13 19:33:31 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 1T0yW1-0007G6-IO for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2012 19:33:21 +0200 Original-Received: from localhost ([::1]:46194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0yW0-0000py-KD for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2012 13:33:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0yVu-0000Nj-9p for emacs-devel@gnu.org; Mon, 13 Aug 2012 13:33:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0yVp-0003Zf-Rf for emacs-devel@gnu.org; Mon, 13 Aug 2012 13:33:14 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:52948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0yVp-0003ZX-KG for emacs-devel@gnu.org; Mon, 13 Aug 2012 13:33:09 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8P00F00FBO2200@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Mon, 13 Aug 2012 20:32:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8P00DBDFE4LMB1@a-mtaout22.012.net.il>; Mon, 13 Aug 2012 20:32:29 +0300 (IDT) In-reply-to: <5028F5EA.40609@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:152489 Archived-At: > Date: Mon, 13 Aug 2012 16:41:14 +0400 > From: Dmitry Antipov > > 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.