Bug 456796 - Lag spike when viewing room info with lots of members
Summary: Lag spike when viewing room info with lots of members
Status: CONFIRMED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-16 13:38 UTC by Jan Bidler
Modified: 2022-11-21 22:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Bidler 2022-07-16 13:38:00 UTC
SUMMARY
When viewing room/member info in a room with lots of members, there's a visible lag spike and the UI becomes unresponsive.

STEPS TO REPRODUCE
1. Open NeoChat, and visit a room with a lot of members, like #matrix:matrix.org (matrix-HQ)
2. Click on the button to open the sidebar

OBSERVED RESULT
Visible lag spike, UI completely freezes

EXPECTED RESULT
The UI should not freeze. The sidebar should unpop, with a loading bar for the members, should they have not been loaded yet.

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
NeoChat: flatpak, compiled from master
Comment 1 Tobias Fella 2022-11-21 22:18:26 UTC
I can confirm this, but only if i change the neochat's code to disable lazy loading room members. what happens is that while a listview only loads the rows it currently needs, we're using a SortFilterProxyModel, which, as part of sorting, loads every single row and... sorts them... which takes a while for 40.000 members