What is Nostr?
Vitor Pamplona
npub1gcx…nj5z
2025-02-20 18:01:39

Vitor Pamplona on Nostr: Bloom filters are awesome. A bloom-based Outbox indexer can index 1 million pubkeys ...

Bloom filters are awesome.

A bloom-based Outbox indexer can index 1 million pubkeys with 5 relays each in a second.

Each query to build the inbox/outbox relay list of the user takes just 255 nanoseconds.

All of that in just under 10MB of memory.

As a comparison, just keeping 1M pubkeys in memory takes ~32MB. Keeping 1M relay list events with 5 relays each takes ~650MB of memory.
Author Public Key
npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z