From: Eli Zaretskii <eliz@gnu.org>
To: Chong Yidong <cyd@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Setting bidi-paragraph-direction in comint modes
Date: Wed, 15 Feb 2012 19:01:39 +0200 [thread overview]
Message-ID: <83y5s4vxn0.fsf@gnu.org> (raw)
In-Reply-To: <87k43ovcl0.fsf@gnu.org>
> From: Chong Yidong <cyd@gnu.org>
> Cc: emacs-devel@gnu.org
> Date: Wed, 15 Feb 2012 14:24:11 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Chong Yidong <cyd@gnu.org>
> >> Cc: emacs-devel@gnu.org
> >> Date: Wed, 15 Feb 2012 08:49:18 +0800
> >>
> >> Like I said, it's simply `ls /usr/share/doc'.
> >
> > You mean, the insertion of the next chunk of text that arrives from
> > `ls'?
>
> Yep.
I will time this and see how frequently are we looking for the
paragraph beginning in this case. I never tried to time repeated
insertions in small chunks, so I don't know what redisplay does in
that case.
> > I didn't look at the insertion itself, I tried the various cursor
> > motion commands _after_ the output from `ls' was already in the
> > buffer. Do you see the "crawl" there as well?
>
> Yep. After inserting about 7000 lines into the *shell* buffer, as
> described, press and hold down M-v (or PageUp) for several seconds.
> Redisplay freezes, not updating until about two seconds after the key is
> released. Then it updates the screen with the new cursor position.
I see nothing like that, the display never freezes. Strange. What
kind of CPU do you have there? Is it a GUI session or a TTY session?
Does Emacs run on the local machine or remote one?
> > Can you quantify it? Like, how much time it takes to insert the first
> > 2000 lines vs the last?
>
> Not easily, but it is definitely not my imagination.
OK, I will do it myself.
> You can't reproduce the problem at all?
I see some slowdown, but I cannot in good faith characterize it as
anything like "crawl", and M-v doesn't get stuck. This is on 7-year
old single-core CPU at 3GHz, in an Emacs compiled without
optimizations (-O0). On the same machine, an optimized build (-O2)
runs significantly faster, so I see almost no slowdown at all.
If you say "ls /usr/share/doc >> foo" 4 times and then visit the
resulting file, do you see the same slow M-v in the buffer?
Anyway, please make a bug report about this, and I will see what I can
do about it.
next prev parent reply other threads:[~2012-02-15 17:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-14 6:35 Setting bidi-paragraph-direction in comint modes Chong Yidong
2012-02-14 17:52 ` Stefan Monnier
2012-02-14 17:55 ` Eli Zaretskii
2012-02-15 0:49 ` Chong Yidong
2012-02-15 4:01 ` Eli Zaretskii
2012-02-15 6:24 ` Chong Yidong
2012-02-15 17:01 ` Eli Zaretskii [this message]
2012-02-17 5:44 ` Chong Yidong
2012-02-15 17:46 ` Johan Bockgård
2012-02-15 18:33 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y5s4vxn0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=cyd@gnu.org \
--cc=emacs-devel@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 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.