-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use a ring buffer for the
RoomListService
cache
This will limit the memory used by the cache entries (while it was unbounded before). It's now possible to do this, since we have the `latest_room_event` handy for all the rooms; using the unbounded cache before was papering over the lack of that feature. We can bikeshed on the number of entries in this cache. It has to be small enough to not blow up memory (and keep the linear search over room id fast, but it's secondary), and high enough that we don't hit the full timeline re-build path that often.
- Loading branch information
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters