Bug 390645

Summary: Terrible performance on long lines (10000+ characters)
Product: [Applications] kate Reporter: Nathan Ridge <zeratul976>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 16.08   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nathan Ridge 2018-02-17 22:52:55 UTC
I often need to browse around / edit / reduce minified HTML, JS, and CSS files from websites.

Such files have the property that they can have lines that are tens of thousands of characters long.

Kate's performance when working with such lines is terrible. For example, when using Shift+DownArrow to select several such lines, the response time can be in the tens of seconds per keystroke. Copying/pasting many such lines has sometimes caused Kate to hang for minutes, and I've been forced to kill it. Clearly, Kate is doing something that's quadratic or worse in the line length or selection length.

There are other text editors, like JEdit, which handle such long lines perfectly fine, so it's definitely possible.
Comment 1 Christoph Feck 2018-06-27 21:23:33 UTC

*** This bug has been marked as a duplicate of bug 387910 ***