Skip to content

Cache chat message state for faster reopen#348

Open
nvphungdev wants to merge 1 commit into
stakwork:developfrom
nvphungdev:cache-chat-message-state
Open

Cache chat message state for faster reopen#348
nvphungdev wants to merge 1 commit into
stakwork:developfrom
nvphungdev:cache-chat-message-state

Conversation

@nvphungdev
Copy link
Copy Markdown

Summary

  • keep a bounded cache of recently visible chat message cell state when leaving a chat
  • restore cached rows immediately when reopening the chat, then reconnect the fetched results controller in the background
  • keep the cache capped so repeated chat switches do not grow memory indefinitely

Validation

  • git diff --check
  • xcrun swiftc -parse on the changed Swift files

Closes #124.

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