Project

General

Profile

Slug #1363

Emacs UI: slow with long lines

Added by John Abbott over 4 years ago. Updated 3 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
EmacsUI
Target version:
Start date:
13 Nov 2019
Due date:
% Done:

10%

Estimated time:
Spent time:

Description

I have found mention of so-long.el for emacs which is supposed to help with long lines.

We should investigate.


Related issues

Related to CoCoA-5 - Feature #781: Option to "fold" long lines?Closed2015-09-28

Related to CoCoA-5 - Feature #1431: Juxtaposition of string literalsRejected2020-03-03

History

#1 Updated by John Abbott over 4 years ago

Original location of link was

https://emacs.stackexchange.com/questions/598/how-do-i-prevent-extremely-long-lines-making-emacs-slow

Currently I'm waiting for emacs to handle a long line (about 600Mbytes).
Once emacs has finished CoCoA-5 gets this long line as input >-}

#2 Updated by John Abbott about 4 years ago

  • Related to Feature #781: Option to "fold" long lines? added

#3 Updated by John Abbott about 4 years ago

  • Related to Feature #1431: Juxtaposition of string literals added

#4 Updated by John Abbott about 3 years ago

  • Target version changed from CoCoA-5.4.0 to CoCoA-5.4.2

#5 Updated by John Abbott 3 months ago

  • Status changed from New to In Progress
  • Target version changed from CoCoA-5.4.2 to CoCoA-5.4.4
  • % Done changed from 0 to 10

I did take a look at so-long.el, and it did help a bit.
Handling of long lines is a known emacs weakness; probably the best we can do is document the existence of so-long.el, and/or advise against very long lines. Indeed, the CoCoA-5 comint window gets quite slow whenever there is a line longer than about 100k.
I think I recall that even the GUI was not perfect when handling long lines (but not as slow as emacs). Again perhaps we should document somewhere that it is best not to print long output in an interactive session? Instead output to a file or a string: a string can be printed using fold.

Also available in: Atom PDF