Update on Nostr.Band relay.…

Update on Nostr.Band relay.

Since NIP-45 COUNT is getting some use recently, I've finally got my hands on optimizing the performance of it. Before that our relay used to just scan the matching records and count them instead of returning to the client - which is slow for big sets (like jack's follower list of >100k pubkeys). Now most counters are pre-calculated in the background and thus COUNT is instantaneous.

The counters are probabilistic, for small sets the value is exact, for big ones the expected error rate is up to 2%.

So now any client can show the number of jack's followers without downloading 1 Gb of events, or waiting for ages while they're counted :)

Try it at wss://relay.nostr.band

This post and comments are published on Nostr.