mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 06:04:31 -04:00
This patch changes the capacity of the internal buffer of `ObservableVector` for `SlidingSyncList::room_list` from 16 to 4096. With an increased capacity, we reduce the probability to send a `VectorDiff::Reset` to subscribers. `Reset` are happening quite often for apps using `matrix-sdk`, and it impacts their performance. This patch tries to improve this situation. This `room-list` contains `RoomListEntry`, which is can cheap in terms of memory, compared to the impact of sending `Reset`s too often. That's a tradeoff.