Skip to content

Server Health: page stalls while opening #1053

Done

Description

@ivanfenenko

Opening Server Health (Servers > active profile > Details) slides in smoothly instead of stalling mid-transition.

Follow-up to #1037. On a Pixel 9 a Perfetto trace of one tap on Details showed the push animation freezing for about 115 ms, followed by a 46 ms catch-up frame:

  • Android: ServerHealthViewModel.loadProfile called ConnectionProfileStore.listProfiles() and activeProfile() on viewModelScope. Both decrypt every saved password through Android Keystore (binder calls to keystore2) on the caller's thread, which here is Main, though the page shows only the name, protocol and active id. The week of pings and the report were also built on Main, and rebuilt on every live-status change.
  • iOS: the route already carries name and protocol (no Keychain read), but the 7-day SwiftData fetch and report build run on the MainActor, because the store's nonisolated async methods inherit the caller's actor under approachable concurrency. The Servers quick view does the same for a day of pings on every monitor update.

Remaining:

  • Android: Keystore reads and writes in DataStoreConnectionProfileStore run on Dispatchers.IO
  • Android: Server Health reads the profile catalog without passwords; fetch and report build run on Dispatchers.Default; live status no longer rebuilds the report
  • Android: Servers quick view loads off Main
  • iOS: Server Health and Servers quick view fetch and build @concurrent, off the MainActor
  • Re-measure the transition on a device

Activity

  1. added
    bug
    ios
    android
    priority: medium
    in-progress
    on Nov 15, 2026
  2. ivanfenenko commented on Nov 29, 2026

    @ivanfenenko
    CollaboratorAuthor

    Done in #1055 and #1059 on both platforms. A device re-measure of the transition wasn't done separately. The wider main-thread audit continues in #1054.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidbugin-progressiospriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions