all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Sainty <psainty@orcon.net.nz>
To: Pieter van Oostrum <pieter-l@vanoostrum.org>,
	Jan Synacek <jsynacek@redhat.com>
Cc: 40007@debbugs.gnu.org
Subject: bug#40007: 28.0.50; Emacs gets very slow when displaying a long line
Date: Tue, 24 Mar 2020 21:49:19 +1300	[thread overview]
Message-ID: <f1d49063-b9e6-b56c-4711-ec930732a32b@orcon.net.nz> (raw)
In-Reply-To: <lxfteg1o8x.fsf@cochabamba.vanoostrum.org>

On 10/03/20 11:46 pm, Pieter van Oostrum wrote:
> Jan Synacek <jsynacek@redhat.com> writes:
>
>> 1) emacs -Q
>> 2) M-x shell
>> 3) execute a program that displays a single line, about ~193000
>> characters long
>
> Use so-long-mode.

For clarity, global-so-long-mode isn't going to help with that
recipe, because it doesn't try to detect the *dynamic* creation of
very long lines.  It only cares about visiting files.

In principle it can be employed successfully in other situations,
but for now it's up to users to target such things explicitly.
E.g.:
https://www.reddit.com/r/emacs/comments/ccoksw/solong_mitigating_slowness_due_to_extremely_long/etpi51l/

Note that you probably shouldn't invoke major mode so-long-mode in
a shell-mode buffer, but so-long-minor-mode could help somewhat if
it were enabled.  I think only slightly, though -- in this instance
you'll end up with the *end* of a very long line on display, and so
performance is going to be fairly poor regardless.  Certainly in my
test it didn't make a dramatic difference.  (The really major
benefits of so-long are in preventing certain serious problems
which can occur even when only the start of the line is visible,
and in those situations the improvements can be extremely good.)

As Eli says, the library alleviates some of the problems -- but
only some of them.


-Phil






  reply	other threads:[~2020-03-24  8:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10  9:48 bug#40007: 28.0.50; Emacs gets very slow when displaying a long line Jan Synacek
2020-03-10 10:46 ` Pieter van Oostrum
2020-03-24  8:49   ` Phil Sainty [this message]
2020-03-10 14:40 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2009-05-05 12:44 bug#3219: Long Line Sluggishness David Reitter
2022-07-23  8:59 ` bug#40007: 28.0.50; Emacs gets very slow when displaying a long line Lars Ingebrigtsen

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=f1d49063-b9e6-b56c-4711-ec930732a32b@orcon.net.nz \
    --to=psainty@orcon.net.nz \
    --cc=40007@debbugs.gnu.org \
    --cc=jsynacek@redhat.com \
    --cc=pieter-l@vanoostrum.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.