all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 69385@debbugs.gnu.org
Subject: bug#69385: 30.0.50; Long lines with bidi text slow down Emacs
Date: Sun, 25 Feb 2024 17:23:11 +0100	[thread overview]
Message-ID: <878r381pjk.fsf@gmx.net> (raw)

Displaying a buffer that contains a long line with bidirectional text
greatly slows down Emacs.  A simple reproduction is to copy the the
Arabic example from etc/HELLO (`C-h h'), yank it into a buffer
(fundamental-mode suffices), add " Hello ", and then create a single
line consisting of a large number of copies of these strings; on my
machine 500 copies clearly shows the slowdown, and with 800 copies it is
much worse.

There is no slowdown with a line of the same length consisting only of
RTL or only of LTR text, nor with the above test line when
bidi-display-reordering is set to nil in the buffer (but then, of
course, the Arabic is not displayed correctly).  It seems that the long
line optimizations added to Emacs 29 do not work with bidirectional
text.

(FTR, I encountered this issue with a program of mine that generates
Emacs Lisp files containing such long lines with bidirectional text.
These files are not intended for display but I was examining one and
experienced the slowdown.)


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.38, cairo version 1.18.0) of 2024-02-20 built on strobelfs2
Repository revision: d9afa1f30fdf9d00b447fea0a8343397333e172f
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101009
System Description: Linux From Scratch r12.0-112

Configured using:
 'configure -C --with-xwidgets 'CFLAGS=-Og -g3'
 PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER
PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB





             reply	other threads:[~2024-02-25 16:23 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-25 16:23 Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-02-25 17:06 ` bug#69385: 30.0.50; Long lines with bidi text slow down Emacs Eli Zaretskii
2024-02-25 18:03   ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-25 19:31     ` Eli Zaretskii
2024-02-25 20:36       ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-26 12:33         ` Eli Zaretskii
2024-02-26 14:13           ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-26 14:19             ` Eli Zaretskii
2024-02-26 14:22               ` Eli Zaretskii
2024-02-26 15:17                 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-26 15:52                   ` Eli Zaretskii
2024-02-26 15:59                     ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-26 16:36                       ` Eli Zaretskii
2024-02-26 17:12                         ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-26 19:18                           ` Eli Zaretskii
2024-02-26 21:47                             ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-27  8:52                               ` Eli Zaretskii
2024-02-27 10:13                                 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-03 15:18                             ` Eli Zaretskii
2024-03-04 13:28                               ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-04 14:43                                 ` Eli Zaretskii
2024-03-07 11:12                                   ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-07 11:25                                     ` Eli Zaretskii
2024-03-21  8:29                                     ` Eli Zaretskii
2024-03-21 15:08                                       ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-26 15:17               ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=878r381pjk.fsf@gmx.net \
    --to=bug-gnu-emacs@gnu.org \
    --cc=69385@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.