Bug 252348 - inefficient replace with long lines
Summary: inefficient replace with long lines
Status: RESOLVED DUPLICATE of bug 145686
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-25 15:51 UTC by Christopher Yeleighton
Modified: 2012-11-07 23:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Replace text in this file (7.72 KB, application/x-bzip)
2010-09-25 15:51 UTC, Christopher Yeleighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2010-09-25 15:51:20 UTC
Created attachment 51980 [details]
Replace text in this file

Version:           unspecified (using KDE 4.4.4) 
OS:                Linux

Kate takes a long time to perform replacements inserting line breaks into a long line.

Reproducible: Always

Steps to Reproduce:
1.
Open the attachment "offending.sh".

2.
Tell Kate to replace " \.obj" to "\\\n .obj" using regular expressions.

Actual Results:  
2.
Kate runs for several minutes at 95% processor time.

Expected Results:  
2.
Instant replace (at most twice as slow as in vi).

OS: Linux (x86_64) release 2.6.34.7-0.3-desktop
Compiler: gcc
Comment 1 Christoph Cullmann 2012-11-07 23:21:42 UTC
Long line problem :/
We now auto-break such lines on open, which helps with speed but is not really what you want I guess. Therefore lets dupe that with a wish to have better speed for long lines.

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