Bug 428900 - Long time to load user details
Summary: Long time to load user details
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (show other bugs)
Version: 5.20.2
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Janet Blackquill
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-09 18:25 UTC by medin
Modified: 2023-01-06 15:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27
Sentry Crash Report:


Attachments
users manage long time (511.84 KB, video/mp4)
2020-11-09 20:10 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2020-11-09 18:25:24 UTC
In Manage Users settings, the first time I click on user to show its details it takes long time.

Operating System: Manjaro Linux
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.4.74-1-MANJARO
OS Type: 64-bit
Comment 1 Nate Graham 2020-11-09 18:47:00 UTC
Can you quantify "long time" and list your hardware specs please? For me it takes less than half a second. It's not instant, but I wouldn't call it a long time.
Comment 2 medin 2020-11-09 20:10:14 UTC
(In reply to Nate Graham from comment #1)
> Can you quantify "long time" and list your hardware specs please? For me it
> takes less than half a second. It's not instant, but I wouldn't call it a
> long time.

It's just the first that takes about 2 to 3 seconds, but after that it opens in less time. I have an old laptop with dual core core 2.5Ghz and 6GB of RAM.
There's another problem that sometimes I can't see user item in the list.
See attached video for more info.
Comment 3 medin 2020-11-09 20:10:55 UTC
Created attachment 133183 [details]
users manage long time
Comment 4 Nate Graham 2020-11-09 20:27:29 UTC
All right, thanks. Maybe there's some performance optimization we need to do here.
Comment 5 Bug Janitor Service 2022-02-15 20:50:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1465
Comment 6 Bug Janitor Service 2023-01-06 11:48:15 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2484
Comment 7 Fushan Wen 2023-01-06 15:38:57 UTC
Git commit 8b5c450e48c112eeda02480c34ac3438ea886ff1 by Fushan Wen.
Committed on 06/01/2023 at 15:38.
Pushed by fusionfuture into branch 'master'.

kcms/user: delay loading avatar gallery

Creating the gallery is rather heavy and it is not shown immediately
when the KCM is opened.

By delaying the creation we can improve the load time of the KCM.
FIXED-IN: 5.27

A  +356  -0    kcms/users/package/contents/ui/PicturesSheet.qml     [License: LGPL(3+eV) LGPL(v3.0) LGPL(v2.1)]
M  +6    -325  kcms/users/package/contents/ui/UserDetailsPage.qml

https://invent.kde.org/plasma/plasma-workspace/commit/8b5c450e48c112eeda02480c34ac3438ea886ff1