Skip to content

Profile and Reduce Compose Recomposition Churn on VaultListScreen #319

Description

@maugauwi-hash

Area: Performance
Priority: Low
Estimated Time: 2 hours

Description:
VaultViewModel's StateFlow-driven state, combined with pull-to-refresh (VaultListPullToRefreshTest.kt)
and periodic WebSocket-driven updates, is a plausible source of over-broad recomposition if the
list's StateFlow emits a new full list on every minor update rather than a more granular state
shape.

Tasks:

  • Use Compose's recomposition-counting tooling (Layout Inspector / @Stable/@Immutable audits) on
    VaultListScreen
  • Restructure state to avoid recomposing unaffected rows when a single vault updates
  • Add a regression check (e.g., a recomposition-count assertion in a Compose test) if tooling allows

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions