Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: improve message list performance #4145

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

perf: improve message list performance #4145

wants to merge 10 commits into from

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Sep 24, 2024

Recommended review (and merge) method: commit-by-commit.
I've tested the changes. Encoutered a few bugs with jumpToMessage not working, but fixed them.

Memoize `Message` in `ChatListItem` so that `message2React`
doesn't have to re-run on each chat switch.
`return` doesn't matter because
`await BackendRemote.rpc.getMessageListItems` would just throw anyway.
@WofWca WofWca marked this pull request as ready for review September 24, 2024 10:58
@WofWca WofWca marked this pull request as draft September 24, 2024 12:08
@WofWca WofWca marked this pull request as ready for review September 24, 2024 15:15
Don't reload message cache unnecessarily.

E.g. if you quote a message with a shortcut,
or if you go to message that is not far away.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant