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

When joining/re-joining a channel, last ~20 messages should appear *very* fast #11

Open
holmesworcester opened this issue Oct 16, 2020 · 3 comments

Comments

@holmesworcester
Copy link
Contributor

holmesworcester commented Oct 16, 2020

It's okay for syncing all messages to take some time, but when users know they are likely behind (joining or coming back online) they should get a screen or two full of the most recently sent messages very fast.

It's really important that:

  • they get the most recent ones, i.e. not from another user who is also behind.
  • It's fast as Slack i.e. less than 1 or 2 seconds.
  • It happens both for new users and people rejoining.

Approaches:

  1. Fetch limited depth and display before fetching full depth.
  2. Fetch from user with most recent HEAD.
  3. Try multiple users simultaneously?

Whatever works to make it fast.

@holmesworcester holmesworcester added this to the backlog milestone Oct 16, 2020
@holmesworcester
Copy link
Contributor Author

Note: we could do a shallow pull and pull latest history, but there's some complexity involved. We should only do this if we see it's necessary.

@holmesworcester
Copy link
Contributor Author

holmesworcester commented Nov 17, 2020

UPDATE: probably making the connection via Tor will take some time, but once it's open it should be fast. Probably it will have to do with efficiency of establishing circuits.

@holmesworcester
Copy link
Contributor Author

So to close this ticket, make initial fetch happen as quickly as practical, and then let us know how long it takes to fetch everything based on different message history sizes.

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

No branches or pull requests

1 participant