TryQuiet / libp2p-poc

A proof of concept for off-chain p2p messaging in Zbay
0 stars 0 forks source link

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

Open holmesworcester opened 4 years ago

holmesworcester commented 4 years ago

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:

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.