unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: rms@gnu.org
Cc: 17404@debbugs.gnu.org
Subject: bug#17404: Scrolling is painfully slow
Date: Tue, 06 May 2014 16:21:29 +0300	[thread overview]
Message-ID: <83d2frxcti.fsf@gnu.org> (raw)
In-Reply-To: <83eh07xeea.fsf@gnu.org>

> Date: Tue, 06 May 2014 15:47:25 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 17404@debbugs.gnu.org
> 
> > Date: Tue, 06 May 2014 07:42:47 -0400
> > From: Richard Stallman <rms@gnu.org>
> > 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.





  reply	other threads:[~2014-05-06 13:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-05  6:59 bug#17404: Scrolling is painfully slow Richard Stallman
2014-05-05  8:43 ` Eli Zaretskii
2014-05-06 11:42   ` Richard Stallman
2014-05-06 12:47     ` Eli Zaretskii
2014-05-06 13:21       ` Eli Zaretskii [this message]
2014-05-07 14:02       ` Richard Stallman
2014-05-07 15:24         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83d2frxcti.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=17404@debbugs.gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).