Skip to content

Move heavy getUserDeviceKeys processing off the UI thread#2328

Open
Azare77 wants to merge 1 commit into
famedly:mainfrom
Azare77:main
Open

Move heavy getUserDeviceKeys processing off the UI thread#2328
Azare77 wants to merge 1 commit into
famedly:mainfrom
Azare77:main

Conversation

@Azare77
Copy link
Copy Markdown

@Azare77 Azare77 commented May 5, 2026

This PR moves the expensive processing inside getUserDeviceKeys
to a background isolate to avoid blocking the main/UI thread.

Large device key datasets previously caused noticeable UI freezes
during startup and sync operations.

Changes:

  • Offloaded heavy parsing/grouping work to Isolate.run
  • Kept Matrix client object construction on the main isolate
  • Reduced UI stutter during device key loading

Offloaded the expensive parts of getUserDeviceKeys to a background isolate to prevent main thread blocking during key loading and parsing.

This fixes UI freezes/stutters caused by synchronous processing of large device key datasets.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 5, 2026

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants