After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 369442 - Replace function very slow
Replace function very slow
Status: RESOLVED DUPLICATE of bug 325853
Product: gedit
Classification: Applications
Component: general
2.15.x
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-02 14:36 UTC by mihael robost
Modified: 2007-01-31 13:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description mihael robost 2006-11-02 14:36:38 UTC
exec(SED) :)

Other information:
The 'replace' function on a 5879408 byte lenght file took about 4 min to complete with cpu load at 96-99% (also with very high memory usage). ( file: reps.xml; string : 'media:/3889279732979372.1212' -> 'file:/mnt/temp' ).
The sed did the replacement in about 1 sec.

This machine is running Fedora Core 6 (2.6.18-1.2798.fc6).
Comment 1 mihael robost 2006-11-02 14:40:24 UTC
ps. The replacement has been made 576 times along the file.
Comment 2 Paolo Maggi 2006-11-04 10:31:16 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 325853 ***
Comment 3 Matt Medland 2007-01-31 13:29:23 UTC
Someone's reported this in Ubuntu too: https://launchpad.net/gedit/+bug/45174, yet it is more like this bug than the one that this is a dupe of.

Should I comment at bug #325853 too?

Matt