From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 14838@debbugs.gnu.org
Subject: bug#14838: 24.3.50; repeating next-line or previous-line is broken
Date: Thu, 11 Jul 2013 22:16:00 +0300 [thread overview]
Message-ID: <83ppuo6h73.fsf@gnu.org> (raw)
In-Reply-To: <87zjttx741.fsf@rosalinde.fritz.box>
> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: Jan Djärv <jan.h.d@swipnet.se>, 14838@debbugs.gnu.org
> Date: Thu, 11 Jul 2013 20:51:42 +0200
>
> Here are the top 200 lines of another profile (not identical to the one
> I posted previously, but similar), which account for 99% of the CPU
> time. Is this saying that 70% of CPU time is spent in line-move-partial
> (and 82% in aref)?
I don't believe the aref part. I think the real culprit is font-info.
Let's conduct an experiment: if you modify default-font-height so that
it always just calls frame-char-height, does the problem go away?
> >> vs 0 dlh 14 this nil rowh 13 rbot 1 py 0 vpos 32 last 31.0
> >> 2
> >>
> >> and nothing else.
> >
> > The "py 0" part is very strange. "py" is the vertical coordinate of
> > point in screen line units. Since this was with C-n, I expect py
> > never to be less than half the screen height, which is 16. How come
> > it is zero, i.e. point is in the first line? Can you step through
> > line-move-partial in Edebug and see what is going on there?
>
> If I instrument line-move-partial and type `C-n', I see py = 0 on the
> first line and it increases by 1 on each subsequent line. I have no
> idea why *Messages* only showed a value of 0 for py; could it be that
> the messages were overwritten when the CPU load hit 90%?
Could be, since the messages are produced as part of redisplay.
Can you show the trace messages from when the CPU is not yet 100%
busy, and Emacs can still keep up with scrolling?
next prev parent reply other threads:[~2013-07-11 19:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 21:29 bug#14838: 24.3.50; repeating next-line or previous-line is broken Stephen Berman
2013-07-11 2:51 ` Eli Zaretskii
2013-07-11 10:04 ` Stephen Berman
2013-07-11 15:59 ` Eli Zaretskii
2013-07-11 18:51 ` Stephen Berman
2013-07-11 19:16 ` Eli Zaretskii [this message]
2013-07-11 20:04 ` Stephen Berman
2013-07-11 20:25 ` Eli Zaretskii
2013-07-12 9:48 ` Eli Zaretskii
2013-07-12 10:19 ` Stephen Berman
2013-07-12 10:35 ` Eli Zaretskii
2013-07-13 7:29 ` Eli Zaretskii
2013-07-13 13:15 ` Stephen Berman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83ppuo6h73.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=14838@debbugs.gnu.org \
--cc=stephen.berman@gmx.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.