Please test Lokalize master (if you can)
Karl Ove Hufthammer
karl at huftis.org
Sun Oct 27 13:07:51 GMT 2024
Albert Astals Cid skreiv 21.10.2024 22:35:
>> Karl Ove Hufthammer skreiv 12.07.2024 16:36:
>>> 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.
>> 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<vkrause at kde.org>
>> Date: Wed Jul 10 17:38:56 2024 +0200
>>
>> Switch build system to KF6 and drop Qt5 support
> Are you sure this is not caused by a debug vs release build?
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.
> Can you describe what "opening a project (with many files)" is exactly?
Try this:
Download an example translation project:
svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-support/nn
Fetch the old (KF5) Lokalize version using this command inside the
Lokalize repository:
git switch --detach fb45c1ad
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.
Then try the same using the new (KF6) Lokalize version (the next commit
after fb45c1ad):
git switch --detach d59717e8
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.
--
Karl Ove Hufthammer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-i18n-doc/attachments/20241027/aa12abc9/attachment.htm>
More information about the kde-i18n-doc
mailing list