element-hq / element-x-ios

Next generation Matrix client for iOS built with SwiftUI on top of matrix-rust-sdk.
https://element.io/labs/element-x
GNU Affero General Public License v3.0
434 stars 106 forks source link

Entering room is slow after having backpaginated lots of timeline #1771

Open ara4n opened 1 year ago

ara4n commented 1 year ago

Steps to reproduce

  1. Open room
  2. Load lots of scrollback
  3. Go to room list
  4. Go back into room
  5. Stare at a blank screen for a second or two before the timeline renders.

Outcome

What did you expect?

Instant room view.

As a quick solution we could just discard history beyond a given threshold when you exit a room.

The Right Solution is presumably for the SDK to maintain a (persisted) room cache in the SDK itself, and have the app lazyload timeline out of the SDK - much as we do for the roomlist.

What happened instead?

Nasty delay in room view

Your phone model

No response

Operating system version

No response

Application version

391

Homeserver

No response

Will you send logs?

No

ara4n commented 1 year ago

This is actually reported 2nd hand - i can't reproduce it easily on iOS. It might have been talking about Android?