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 667678 - Space indicator plugin eats 100% cpu on lines with many spaces
Space indicator plugin eats 100% cpu on lines with many spaces
Status: RESOLVED OBSOLETE
Product: gedit-plugins
Classification: Other
Component: General
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-11 09:18 UTC by Xavier Pucel
Modified: 2020-11-24 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple lorem ipsum with many spaces (21.38 KB, text/plain)
2012-01-11 09:19 UTC, Xavier Pucel
Details

Description Xavier Pucel 2012-01-11 09:18:47 UTC
Not much else to say. Lines with 500+ chars and around 250+ white spaces make gedit lag.

Disabling Space indicator plugin stops the problem immediately.

To reproduce, open the attachment and try to scroll horizontally. You can notice that even when not using gedit, it uses 10%% of one cpu core.
Comment 1 Xavier Pucel 2012-01-11 09:19:59 UTC
Created attachment 205004 [details]
Simple lorem ipsum with many spaces
Comment 2 Ignacio Casal Quinteiro (nacho) 2012-01-11 09:33:10 UTC
you mean the drawspaces plugin?
Comment 3 Xavier Pucel 2012-01-11 17:13:43 UTC
Yes I mean the drawspace plugin.

I tried to translate the name but I got it wrong. Now in an English session I confirm it is the plugin named "Draw Spaces" in the UI list.
Comment 4 Ignacio Casal Quinteiro (nacho) 2012-01-11 18:26:47 UTC
You are right, I can reproduce this.
Comment 5 jessevdk@gmail.com 2012-01-13 15:07:17 UTC
We should see which part of the code makes things slow, but probably something can be gained by caching the cairo drawings of various symbols in a server side (X) image instead of redrawing each time using Cairo commands.
Comment 6 Sébastien Wilmet 2020-11-24 10:18:26 UTC
Mass-closing of all gedit-plugins bugzilla tickets.

Special "code" to find again all those gedit-plugins bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.