From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16594: 24.3.50; very slow redraw when resizing windows horizontally Date: Thu, 30 Jan 2014 18:15:27 +0200 Message-ID: <83mwid78f4.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1391098582 29601 80.91.229.3 (30 Jan 2014 16:16:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 16:16:22 +0000 (UTC) Cc: 16594@debbugs.gnu.org To: Darren Hoo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 30 17:16:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1W8uHr-00050I-Hu for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 17:16:19 +0100 Original-Received: from localhost ([::1]:51058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8uHr-0004DS-2d for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 11:16:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8uHh-0004B4-US for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 11:16:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8uHa-0001HY-K8 for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 11:16:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8uHa-0001HU-Gp for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 11:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W8uHa-0007M7-6Z for bug-gnu-emacs@gnu.org; Thu, 30 Jan 2014 11:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jan 2014 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16594 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16594-submit@debbugs.gnu.org id=B16594.139109853028229 (code B ref 16594); Thu, 30 Jan 2014 16:16:02 +0000 Original-Received: (at 16594) by debbugs.gnu.org; 30 Jan 2014 16:15:30 +0000 Original-Received: from localhost ([127.0.0.1]:41621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8uH3-0007LE-Hq for submit@debbugs.gnu.org; Thu, 30 Jan 2014 11:15:29 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:47860) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8uH0-0007L5-Mq for 16594@debbugs.gnu.org; Thu, 30 Jan 2014 11:15:27 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N0800O0029YOG00@mtaout24.012.net.il> for 16594@debbugs.gnu.org; Thu, 30 Jan 2014 18:14:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0800BNP2GX8W70@mtaout24.012.net.il>; Thu, 30 Jan 2014 18:14:57 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84268 Archived-At: > From: Darren Hoo > Date: Thu, 30 Jan 2014 16:01:42 +0800 > > emacs -q > (scroll-bar-mode 'nil) > C-x 3 > > then try to resize the windows using mouse several times and emacs > redisplay is so slow that you can notice the fringes besides the drag > handle is repainted from top to bottom frame by frame. > > profiling shows `read-event' takes much of the time, is this the real > cause? > > - command-execute 207 98% > - call-interactively 207 98% > - mouse-drag-vertical-line 202 96% > - mouse-drag-line 202 96% > - eval 202 96% > - track-mouse 202 96% > - funcall 202 96% > - # 202 96% > - read-event 184 87% > - redisplay_internal (C function) 1 0% > eval 1 0% > + profiler-report 5 2% > - ... 2 0% > Automatic GC 2 0% > + redisplay_internal (C function) 1 0% According to the profile, if there is something slow, it's not in the display engine, but in read-event.