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#17404: Scrolling is painfully slow Date: Tue, 06 May 2014 16:21:29 +0300 Message-ID: <83d2frxcti.fsf@gnu.org> References: <837g60zkch.fsf@gnu.org> <83eh07xeea.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1399413785 25425 80.91.229.3 (6 May 2014 22:03:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 May 2014 22:03:05 +0000 (UTC) Cc: 17404@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 07 00:02:58 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 1WhnQ9-0002FQ-3Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 May 2014 00:01:05 +0200 Original-Received: from localhost ([::1]:35386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhfK7-0006wr-96 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 May 2014 09:22:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhfJx-0006jy-44 for bug-gnu-emacs@gnu.org; Tue, 06 May 2014 09:22:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhfJr-0003wS-7e for bug-gnu-emacs@gnu.org; Tue, 06 May 2014 09:22:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhfJq-0003wH-V3 for bug-gnu-emacs@gnu.org; Tue, 06 May 2014 09:22:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WhfJq-0006Od-DW for bug-gnu-emacs@gnu.org; Tue, 06 May 2014 09:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 May 2014 13:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17404 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17404-submit@debbugs.gnu.org id=B17404.139938249524547 (code B ref 17404); Tue, 06 May 2014 13:22:02 +0000 Original-Received: (at 17404) by debbugs.gnu.org; 6 May 2014 13:21:35 +0000 Original-Received: from localhost ([127.0.0.1]:52523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhfJO-0006Nq-EW for submit@debbugs.gnu.org; Tue, 06 May 2014 09:21:35 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:36146) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhfJL-0006NT-JI for 17404@debbugs.gnu.org; Tue, 06 May 2014 09:21:32 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0N5500J00M52VR00@mtaout25.012.net.il> for 17404@debbugs.gnu.org; Tue, 06 May 2014 16:18:41 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5500BU7MB5Y180@mtaout25.012.net.il>; Tue, 06 May 2014 16:18:41 +0300 (IDT) In-reply-to: <83eh07xeea.fsf@gnu.org> 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:88658 Archived-At: > Date: Tue, 06 May 2014 15:47:25 +0300 > From: Eli Zaretskii > Cc: 17404@debbugs.gnu.org > > > Date: Tue, 06 May 2014 07:42:47 -0400 > > From: Richard Stallman > > CC: 17404@debbugs.gnu.org > > > > I should explain that I configured Emacs to visit that file in Rmail mode. > > Try it that way. > > I did. I used "C-u M-x rmail RET foo2.mail RET" in "emacs -Q". Does > that reproduce the problem on your system? > > What about "emacs -nw" -- do you see the same slowdown there? Or is > the problem limited to the GUI sessions? Also, could you please try profiling Emacs and reporting the results? Like this: M-x load-file RET simple.el RET C-u M-x rmail RET foo2.mail RET C-s GNU Emacs C-f M-x profiler-start RET RET Now press and hold C-n for 5 seconds, then release C-n and type M-x profiler-report RET In the buffer with the profile, please type "C-u RET" on every line that has a "+" to its left, to completely expand the profile. Then please post the result. Here's my profile: - command-execute 159 100% - let 159 100% - if 159 100% - let 159 100% - cond 159 100% - prog1 159 100% - call-interactively 159 100% - next-line 150 94% - if 150 94% - if 150 94% - condition-case 150 94% - line-move 150 94% - if 150 94% - if 150 94% - if 150 94% - prog1 150 94% - line-move-visual 103 64% - let 103 64% - or 99 62% - and 99 62% - or 99 62% - and 99 62% >= 99 62% - if 4 2% let 4 2% let 47 29% - list 9 5% - read-extended-command 9 5% - let 9 5% - unwind-protect 9 5% - progn 9 5% - completing-read 9 5% - completing-read-default 9 5% read-from-minibuffer 9 5% - ... 0 0% Automatic GC 0 0% This seems to indicate that line-move and line-move-visual take most of the time. If you get a similar result, then please try replacing these 2 functions with their code from May 2013, and see if that makes the slowdown go away.