Bug 324829

Summary: Kate ,Kwrite gets real slow with minified file (wraped lines)
Product: [Applications] kate Reporter: asem <asem>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: christoph, tonytong198
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mint (Debian based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Demo file for the issue

Description asem 2013-09-12 08:51:28 UTC
Kate ,Kwrite gets real slow with minified file (wraped lines) like in jquery.min.js I haven't tried it on other file types other than js.
it consumes much cpu time and the whole program seems to hang.

Reproducible: Always

Steps to Reproduce:
1.open kate
2.open a js minified file
Actual Results:  
gets real slow when moving cursor or making search.

Expected Results:  
function properly.
Comment 1 Dominik Haumann 2013-09-12 13:56:33 UTC
Please explain what you mean by minified file. Is it that the entire contents is in one single line?
Comment 2 asem 2013-09-12 14:08:08 UTC
Created attachment 82298 [details]
Demo file for the issue
Comment 3 asem 2013-09-12 14:09:49 UTC
The minified file contains no Enter special char (#13) Tab char (#27) among others
Comment 4 Christoph Cullmann 2014-09-22 20:29:51 UTC
For that, we have the "line length limit" on load.
this is unfixable, as layouting long lines is just slow with Qt, even with Qt 5.
Minified files are not there for editing, for viewing, it works just fine, with the line length limit.
Comment 5 tonytong 2015-12-22 09:17:35 UTC
or you can try this free online js minifier http://www.online-code.net/minify-js.html,
I used this free tool for a long time.