-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid cached scrollbacks if stream contains a renderable event (#1292)
Client init performance tweak. We're performing scrollbacks hoping to pick up renderable events. By skipping cached scrollbacks when the loaded miniblocks already contain a renderable event, we can return early. Lowers the duration of `loadStreamsFromPersistence` on my machine with my user's streams from ~7500ms to ~6500ms. This logic could also be tweaked to _guarantee_ that a stream contains a top-level renderable event.
- Loading branch information
1 parent
712ea4f
commit fce367c
Showing
1 changed file
with
43 additions
and
6 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