unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lawrence Mitchell <wence@gmx.li>
Cc: 11943@debbugs.gnu.org
Subject: bug#11943: 24.1.50; Emacs unusably slow when looking at large files (bidi support	at	fault)
Date: Sun, 15 Jul 2012 17:51:15 +0300	[thread overview]
Message-ID: <83hat9axi4.fsf@gnu.org> (raw)
In-Reply-To: <87fw8tqlra.fsf@gmx.li>

> From: Lawrence Mitchell <wence@gmx.li>
> Date: Sun, 15 Jul 2012 12:58:17 +0100
> 
> This appears to be an issue with buffers that have no strongly
> R2L or L2R characters near point-min.

More accurately, it was an issue with _paragraphs_ that have no strong
directional characters.

> C-x b *tmp* RET
> M-x fundamental-mode RET
> M-: (dotimes (i 100000) (insert "1\n")) RET
> M-<
> 
> next-line now has a noticeable delay (especially when holding
> down next-line, display doesn't update the cursor position).
> 
> Now insert an 'a' somewhere near the beginning of the buffer,
> display updates appear instantaneous again.  If we instead go to
> the end of the buffer and insert an 'a', no such change in the
> response occurs.

However, if you insert "a\n\n" at the beginning, the slowdown comes
back again.  Which is to say that the problem is not with what we have
at point-min, but what we have in the paragraph around point.  The
fact that setting bidi-paragraph-direction to a non-nil value makes
the problem go away is another telltale sign of that.

Anyway, it's solved now.

Thanks.





      reply	other threads:[~2012-07-15 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-15  0:50 bug#11943: 24.1.50; Emacs unusably slow when looking at large files (bidi support at fault) Dima Kogan
2012-07-15  3:04 ` Eli Zaretskii
2012-07-15  3:31   ` Dima Kogan
2012-07-15 14:47     ` Eli Zaretskii
2012-07-15 11:58   ` Lawrence Mitchell
2012-07-15 14:51     ` Eli Zaretskii [this message]

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=83hat9axi4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=11943@debbugs.gnu.org \
    --cc=wence@gmx.li \
    /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).