mikedilger / gossip

Gossip is a nostr client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache subscription time ranges?

mikedilger opened this issue · comments

We no longer preserve the general feed. When you switch away and back, it reloads from scratch. This means more duplicate event downloading from relays.

If we had a per-relay per-filter cache of time ranges, we could modify filters to exclude time ranges we already asked for so we don't repeat these.

Instead I separated anchors. Each feed keeps it's own anchor and we preserve them between feed switches. Good enough.