damus-io / notedeck

A multiplatform nostr client
Other
52 stars 9 forks source link

Optimization: detect overlapping filters #19

Open jb55 opened 2 months ago

jb55 commented 2 months ago

Let's say you create 3 columns:

  1. Home timeline
  2. Notifications
  3. Global timeline

We should be able to detect that we only need 1 network subscription:

And the remaining timelines can just be nostrdb subscriptions.

jb55 commented 2 months ago

I think this only really makes sense in the subscription pool model. Not sure if this makes sense in the outbox model.

jb55 commented 2 months ago

@v0l mentinoed they have something similar in rust for snort