GNOME Bugzilla – Bug 667678
Space indicator plugin eats 100% cpu on lines with many spaces
Last modified: 2020-11-24 10:18:26 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.
Created attachment 205004 [details] Simple lorem ipsum with many spaces
you mean the drawspaces plugin?
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.
You are right, I can reproduce this.
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.
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.