* Performance issues with long lines in shell mode
@ 2020-05-07 16:40 David Karr
2020-05-07 16:56 ` Eli Zaretskii
2020-05-10 7:26 ` Andreas Röhler
0 siblings, 2 replies; 3+ messages in thread
From: David Karr @ 2020-05-07 16:40 UTC (permalink / raw)
To: help-gnu-emacs
I'm using Cygwin Emacs v26.3.
I use shell buffers in Emacs very often. Some of the command lines I run
end up producing output with a large number of lines, and sometimes with
very long lines. If the output is a large number of lines, it doesn't
present any particular problem. However, if it ends up producing very long
lines (equivalent of a hundred lines or more), I find that it gets very
slow. I generally don't even keep my cursor at the end of the output, so
it's adding output that I'm not even seeing. However, I can still tell that
it's running slowly. If I occasionally jump to the end of the output, I see
it sending characters in bursts, but much less than a line at a time.
If I know that what I'm about to run will create long lines, I generally
try to remember to pipe it directly to a file and then open that file. That
goes much faster than letting it output to the shell.
Is there some mitigation I can configure that will help with this?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Performance issues with long lines in shell mode
2020-05-07 16:40 Performance issues with long lines in shell mode David Karr
@ 2020-05-07 16:56 ` Eli Zaretskii
2020-05-10 7:26 ` Andreas Röhler
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2020-05-07 16:56 UTC (permalink / raw)
To: help-gnu-emacs
> From: David Karr <davidmichaelkarr@gmail.com>
> Date: Thu, 7 May 2020 09:40:55 -0700
>
> If I know that what I'm about to run will create long lines, I generally
> try to remember to pipe it directly to a file and then open that file. That
> goes much faster than letting it output to the shell.
>
> Is there some mitigation I can configure that will help with this?
Try "M-x toggle-truncate-lines RET". It doesn't always help, but it's
worth trying.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Performance issues with long lines in shell mode
2020-05-07 16:40 Performance issues with long lines in shell mode David Karr
2020-05-07 16:56 ` Eli Zaretskii
@ 2020-05-10 7:26 ` Andreas Röhler
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2020-05-10 7:26 UTC (permalink / raw)
To: help-gnu-emacs
On 07.05.20 18:40, David Karr wrote:
> I'm using Cygwin Emacs v26.3.
>
> I use shell buffers in Emacs very often. Some of the command lines I run
> end up producing output with a large number of lines, and sometimes with
> very long lines. If the output is a large number of lines, it doesn't
> present any particular problem. However, if it ends up producing very long
> lines (equivalent of a hundred lines or more), I find that it gets very
> slow. I generally don't even keep my cursor at the end of the output, so
> it's adding output that I'm not even seeing. However, I can still tell that
> it's running slowly. If I occasionally jump to the end of the output, I see
> it sending characters in bursts, but much less than a line at a time.
>
> If I know that what I'm about to run will create long lines, I generally
> try to remember to pipe it directly to a file and then open that file. That
> goes much faster than letting it output to the shell.
>
> Is there some mitigation I can configure that will help with this?
AFAIU there might be a solution avoiding interactive use of shell,
sending stuff to some shell-process buffer instead while not displaying
the latter.
Considering the display-engine possibly causing the slowness.
May you provide an example-case suitable for benchmarking?
Best,
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-10 7:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-07 16:40 Performance issues with long lines in shell mode David Karr
2020-05-07 16:56 ` Eli Zaretskii
2020-05-10 7:26 ` Andreas Röhler
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).