<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Albert Astals Cid skreiv 21.10.2024
22:35:<br>
</div>
<blockquote type="cite" cite="mid:3630959.615RpGtf7V@xps15">
<pre class="moz-quote-pre" wrap=""><blockquote type="cite"
style="overflow: unset; height: unset; background-image: url(chrome://messenger/skin/overrides/arrow-down-12.svg); padding-block: .5ex; background-repeat: no-repeat; background-position-x: 2px; background-position-y: .4ex; background-size: 1em;"><pre
wrap="" class="moz-quote-pre" style="display: inline;">Karl Ove Hufthammer skreiv 12.07.2024 16:36:
</pre><blockquote type="cite" style="overflow: unset; height: unset;"><pre
wrap="" class="moz-quote-pre">I did a small test, an opening a project (with many files) seems to be
much slower than in the old version. The time from launching Lokalize
to all files being read and indexed is ~31 seconds with the version
from Git master, compared to ~14 seconds with the KF5 version. I have
tested this multiple times (to avoid caching having an effect). Note
that the KF5 version used was the latest openSUSE Tumbleweed package;
I did not compile it myself.
</pre></blockquote><pre wrap="" class="moz-quote-pre">Part of the slowdown may be caused by compiler settings. But I have now
tried compiling older versions myself, and I still find a (somewhat
smaller) speed difference between the KF5 and KF6 versions. I did a Git
bisect, and the slowdown seems to have been introduced in this commit:
commit d59717e896c42f930c7dde66eea8406177fb9f4b (HEAD)
Author: Volker Krause <a class="moz-txt-link-rfc2396E"
href="mailto:vkrause@kde.org" moz-do-not-send="true"><vkrause@kde.org></a>
Date: Wed Jul 10 17:38:56 2024 +0200
Switch build system to KF6 and drop Qt5 support
</pre></blockquote><pre wrap="" class="moz-quote-pre">
Are you sure this is not caused by a debug vs release build?</pre></pre>
</blockquote>
<p>Yes, I’m certain that this is real issue, introduced in the KF6
port. I have tested with a build using the same settings for both
versions.</p>
<p><span style="white-space: pre-wrap">
</span></p>
<blockquote type="cite" cite="mid:3630959.615RpGtf7V@xps15">
<pre class="moz-quote-pre" wrap=""><pre wrap=""
class="moz-quote-pre">Can you describe what "opening a project (with many files)" is exactly?</pre></pre>
</blockquote>
<p>Try this:<br>
<br>
Download an example translation project:<br>
svn co <a class="moz-txt-link-abbreviated" href="mailto:svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-support/nn">svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-support/nn</a><br>
<br>
Fetch the old (KF5) Lokalize version using this command inside the
Lokalize repository:<br>
git switch --detach fb45c1ad<br>
<br>
Compile and launch the application. Then open the project file
nn/kde-nynorsk.lokalize, and time how long it takes to finish
opening the project. The very first time, it may take an extra
long time, so ignore this measurement. Close the project and
reopen multiple times to get accurate measurements.<br>
<br>
Then try the same using the new (KF6) Lokalize version (the next
commit after fb45c1ad):<br>
git switch --detach d59717e8<br>
<br>
On my system, the KF5 version takes about 10 seconds to open the
project (average of three measurements, ignoring the first after
compiling). The KF6 version takes about 17 seconds, i.e. 70%
longer.<br>
</p>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Karl Ove Hufthammer</pre>
</body>
</html>