Mousepad performance

Post here if you are a new Porteus member and you're looking for some help.
fulalas
DEV Team
DEV Team
Posts: 1380
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Mousepad performance

Post#1 by fulalas » 20 Apr 2019, 12:16

Can anyone confirm that Xfce Mousepad Editor performance is terrible when pasting the content of the link below (just an example of a big formated text) and saving it as a HTML? Even the colors get broken... :shock:

Code: Select all

view-source:https://g1.globo.com/sp/vale-do-paraiba-regiao/noticia/2019/04/18/professor-e-demitido-apos-critica-a-bolsonaro-durante-aula-em-escola-de-sao-jose-sp.ghtml
Leafpad doesn't suffer of performance issues. However it doesn't provide language formating. Is there a good GTK alternative?

User avatar
francois
Contributor
Contributor
Posts: 5645
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Mousepad performance

Post#2 by francois » 20 Apr 2019, 13:00

Please provide more instructions. I would hapily test the thing but there is no such color settings in my mousepad environment.
Prendre son temps, profiter de celui qui passe.

fulalas
DEV Team
DEV Team
Posts: 1380
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Mousepad performance

Post#3 by fulalas » 21 Apr 2019, 07:22

francois wrote:
20 Apr 2019, 13:00
Please provide more instructions. I would hapily test the thing but there is no such color settings in my mousepad environment.
Which color settings are you referring to? It's just a matter of copying the source content of the link above and paste it on Mousepad, saving it as a HTML.

User avatar
francois
Contributor
Contributor
Posts: 5645
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Mousepad performance

Post#4 by francois » 21 Apr 2019, 11:51

fulalas wrote:
20 Apr 2019, 12:16
... and saving it as a HTML? Even the colors get broken...
What do you mean by suffering of a simple text editor. I copied the text from the link into mousepad. Seems ok. But I agree, leafpad has been performing better on some past installations for me.

I have no substitute to offer. ;)
Prendre son temps, profiter de celui qui passe.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2054
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Mousepad performance

Post#5 by ncmprhnsbl » 23 Apr 2019, 03:56

no problem here ... copied,pasted, saved, opened in browser ..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 1380
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Mousepad performance

Post#6 by fulalas » 23 Apr 2019, 04:59

It's not a matter of working. It's a matter of performance. :P The scroll performance is terrible on my machine when using Mousepad and long files.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2054
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Mousepad performance

Post#7 by ncmprhnsbl » 23 Apr 2019, 10:36

fulalas wrote:
23 Apr 2019, 04:59
It's not a matter of working. It's a matter of performance. :P The scroll performance is terrible on my machine when using Mousepad and long files.
no perceivable performance problems here eg. 18000 line configure script with sh highlighting, scrolls fine ..
sounds like a driver issue..
i wonder how xedit would go for you, also being gtk3, gtksourceview based..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

nanZor
Samurai
Samurai
Posts: 169
Joined: 09 Apr 2019, 03:27
Distribution: Porteus 5.0 RC1 XFCE
Location: Los Angeles

Mousepad performance

Post#8 by nanZor » 24 Apr 2019, 19:56

I see the mouse performance hit on that text. Especially once it gets near line 268 or so, which is huge.

Possible solution that worked for me:

Turned off word-wrap.
Turned off line numbering for a smaller performance increase.
That's a UNIX book - cool. -Garth

fulalas
DEV Team
DEV Team
Posts: 1380
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Mousepad performance

Post#9 by fulalas » 01 Jun 2019, 11:43

ncmprhnsbl wrote:
23 Apr 2019, 10:36
i wonder how xedit would go for you, also being gtk3, gtksourceview based..
You mean gEdit? If so, it's as terrible as Mousepad :(
nanZor wrote:
24 Apr 2019, 19:56
I see the mouse performance hit on that text. Especially once it gets near line 268 or so, which is huge.
Exactly! Even the syntax highlight gives up; it's ridiculous!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2054
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Mousepad performance

Post#10 by ncmprhnsbl » 01 Jun 2019, 12:10

fulalas wrote:
01 Jun 2019, 11:43
You mean gEdit? If so, it's as terrible as Mousepad
xedit is the editor in cinnamon
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 1380
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Mousepad performance

Post#11 by fulalas » 01 Jun 2019, 20:48

ncmprhnsbl wrote:
01 Jun 2019, 12:10
xedit is the editor in cinnamon
Oh, I see. They changed the name to xed. Unfortunately it's a gedit fork, which means it suffers from the same issues.

Here is a HTML to test: http://www.mediafire.com/file/ar27oj715 ... .html/file

Notice that the syntax highlight simply disappear (for mousepad, xed and gedit), and that the scroll performance (dragging the scroll bar) is not good. I noticed that although leafpad opens it pretty past, it suffers from laggy scroll performance -- and it doesn't even have syntax highlight!

I simply can't understand how a machine can handle heavy games (with thousand effects) at 60 FPS, but can't draw a simply text decently :unknown:

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2054
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Mousepad performance

Post#12 by ncmprhnsbl » 01 Jun 2019, 23:25

fulalas wrote:
01 Jun 2019, 20:48
They changed the name to xed.
ha i always make this mistake :oops:
at the moment, i am in an arch based setup on a machine with nvidia graphic(old fx210) using propriety driver and can now see what your talking about(with mousepad and xed)- hightlighing fails... scrolling seems ok
for comparison, i also have geany(which in arch is a gtk3 version) ..no highligthing/performance issues there that i can see.
i suspect the problem is with gtksourceview
and maybe only with certain video drivers, since it seemed to be okay on my laptop with amd(radeon) graphics (not in any way new)

EDIT
xed from terminal at the moment hightlighting fails: (same with mousepad)

Code: Select all

(xed:6105): GtkSourceView-CRITICAL **: 09:39:03.879: Highlighting a single line took too much time, syntax highlighting will be disabled
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2054
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Mousepad performance

Post#13 by ncmprhnsbl » 02 Jun 2019, 06:02

ncmprhnsbl wrote:
01 Jun 2019, 23:25
and maybe only with certain video drivers, since it seemed to be okay on my laptop with amd(radeon) graphics (not in any way new)
ok scrub that.. getting failed highlighting/poor scrolling with pluma(mate also gtksourceview3) on my laptop
disabling word wrapping improves scrolling somewhat..
a slightly smaller/less complex html file seems okay..
looks like gtksourceview3 has a problem with very long lines..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 1380
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Mousepad performance

Post#14 by fulalas » 02 Jun 2019, 07:05

Somehow that's what I was expecting to hear, hahaha!

Imagine the code quality behind these libs/apps :crazy:

fulalas
DEV Team
DEV Team
Posts: 1380
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Mousepad performance

Post#15 by fulalas » 02 Jun 2019, 07:33

I've just tried Clear Linux gtksourceview version with the hope that it would deliver a decent performance, but I couldn't notice any improvement whatsoever :(

Next step: I'll try to create a Xfce module with just Clear Linux packages. Let's see...

Post Reply