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 512108 - saving with gedit uses a great amount of cpu
saving with gedit uses a great amount of cpu
Status: RESOLVED DUPLICATE of bug 488507
Product: gedit
Classification: Applications
Component: general
2.20.x
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-25 18:40 UTC by Jean-François Fortin Tam
Modified: 2008-03-30 16:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Jean-François Fortin Tam 2008-01-25 18:40:59 UTC
Please describe the problem:
gedit seems to use an insane amout of cpu each time you save a document. I'd like to know if there is a specific reason for that.
I mean, if I actually *noticed* a global performance hit evertime gedit saves, there must surely be some hidden monster that needs optimization in the code?

Steps to reproduce:
1. open a plain text file in gedit and bluefish*
2. make some modifications in them
3. save in gedit
4. save in bluefish

my documents typically have 9000 characters (1500 words) and weigh <10 KiB. This is not taking into account documents that need syntax highlighting such as html or python files.

Actual results:
gedit shows a big cpu usage for about 2-5 seconds (according to the sys monitor applet and my cpu fan), whereas bluefish does not

Expected results:
do not use a lot of cpu, or at least don't make my computer lag behind when I am typing :)

Does this happen every time?
yes

Other information:
I use autosave (this happens even without it), I have pentium M processors (>1.7 Ghz) and plenty of ram.
Comment 1 Jean-François Fortin Tam 2008-01-25 18:42:30 UTC
sorry, the * after "bluefish" was just there as a footnote for the paragraph that followed ("my documents typically have 9000 characters (1500 words) and weigh <10 KiB. This is not taking into account documents that need syntax highlighting such ashtml or python [...]")
Comment 2 Paolo Borelli 2008-03-30 16:07:46 UTC
we figured out on irc that this was due to the huge .recently-used.xbel.

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