Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: optimize chat_list loading #61

Open
ignyx opened this issue Oct 10, 2024 · 0 comments
Open

perf: optimize chat_list loading #61

ignyx opened this issue Oct 10, 2024 · 0 comments

Comments

@ignyx
Copy link

ignyx commented Oct 10, 2024

In file lib/pages/chat_list/chat_list.dart,

      await preloadRoomBotChecks(Matrix.of(context).client.rooms);
      await identifyAndRemoveDuplicates(filteredRooms);

is called in a WidgetsBinding.instance.addPostFrameCallback, which may cause the multiple second freeze after searching.

Could be moved to an isolate, or the Matrix Room IDs for bot rooms could be stored instead of recalculating at each start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant