From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?SmFuIERqw6Rydg==?= Newsgroups: gmane.emacs.devel Subject: Re: Slow GTK3 redisplay Date: Mon, 13 Aug 2012 21:15:10 +0200 Message-ID: <5029523E.2040703@swipnet.se> References: <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 1344885324 30011 80.91.229.3 (13 Aug 2012 19:15:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2012 19:15:24 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 13 21:15:25 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 1T106l-0006TO-6b for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2012 21:15:23 +0200 Original-Received: from localhost ([::1]:58916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T106k-0008Ba-7Q for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2012 15:15:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T106h-0008BH-Ux for emacs-devel@gnu.org; Mon, 13 Aug 2012 15:15:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T106g-0002Mw-VL for emacs-devel@gnu.org; Mon, 13 Aug 2012 15:15:19 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:60459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T106g-0002Md-O9 for emacs-devel@gnu.org; Mon, 13 Aug 2012 15:15:18 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 30E0FC2F8 for ; Mon, 13 Aug 2012 21:15:14 +0200 (CEST) Original-Received: (qmail 13836 invoked by uid 89); 13 Aug 2012 19:14:59 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 13 Aug 2012 19:14:59 -0000 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 1EB337FA06C; Mon, 13 Aug 2012 21:15:10 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: <5028F5EA.40609@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 62.20.26.67 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:152492 Archived-At: Hello. 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. Not a big real world problem, or there would have been complaints. Jan D.