Slug #1363
Emacs UI: slow with long lines
Description
I have found mention of so-long.el
for emacs which is supposed to help with long lines.
We should investigate.
Related issues
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
.