outline pane issues and huge note slowness
sovhist
sovhist at yahoo.com
Tue Dec 7 02:19:19 UTC 2021
> So, here is what I see (and do not see):
>
> In flame_2, a lot of time is spent to draw the misspelling marks.
> Indeed, for that it is necessary to find the position for beginning
> and
> end of each misspelt word. What happens if you turn off on-screen
> spell
> checking?
>
Well, I don't see much difference with and withoug spellcheck. All
"words" are with misspelling marks, so this could be a problem, but no.
I remember, that erlier, maybe a year ar two ago there were lags with
text in Lithuanian bigger than in English. But now I can't see bigger
differences.
It is much harder to see lag differences with breakrows branch because
you did wery good work wiht large insets :). For me it's not 40% gain,
but maybe four times better than without it.
> In flame_1, I do not see much, except maybe the fact that a lot of
> time
> is spent acessing the cache (the part with QCache and QHash) of
> already
> computing rows. This can be good (already is already computed) or bad
> (the cache access are very slow), depending on the importance of this
> part of code in the whole picture.
>
My computer uses ssd (nvme), so cache access shouldn't be a problem
though I'm not shure about that.
> In full.svg, I do not see the time spent painting the screen (what is
> in
> flame_2), so I cannot compare it to the time spend computing the
> position of each element (basically the redoParagraph stuff). It would
> be good to understand what is too slow.
>
On which part of full.svg should I click that you could see what you need?
> Finally, could you check whether LyX is the only thing using cpu time?
> What about the X server, for example?
I'm using Wayland with Sway, so there is only window manager, no desktop
manager and most programs are lightweight (except browsers and new mail
client on Electron). But my computer usually uses only about 5-10% CPU
so cooler is working rarely.
I opened hugenote file in i3 on X11 and lag was even bigger. But i3 is
barebone, I'm not using it, so maybe something is badly configured.
I opened usual file in Lyx with little insets, and scrolled up and down,
Htop shows CPU usage about 40% of one core (and it spikes to 80-99% when
text in Russian that is marked with spellcheck appears on screen). CPU
instantly spikes to 96-98% while scrolling hugenote file with spellcheck
marks. I see 86-96% whithout them. That is both in Lithuanian and
Egglish, maybe there is some more CPU usage in Lithuanian (I see more
100% with that language than with English, but that could be because
different speed of scroll).
One more thing: I see three instances of lyx process in Htop, but only
one reacts to scrolling, two other sits calmly and shows 0% of CPU
usage. And I see that Lyx uses only one core, not four, only one core
spikes. Is that normal?
Valdemaras
More information about the lyx-users
mailing list