Bug 324829 - Kate ,Kwrite gets real slow with minified file (wraped lines)
Summary: Kate ,Kwrite gets real slow with minified file (wraped lines)
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Mint (Debian based) Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 08:51 UTC by asem
Modified: 2015-12-22 09:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Demo file for the issue (89.41 KB, application/javascript)
2013-09-12 14:08 UTC, asem
Details

Note You need to log in before you can comment on or make changes to this bug.
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.