jb55's avatar
jb55 _@jb55.com 11 months ago
if you want raw performance using nostrdb-rs directly is best, since when nostr-sdk wraps it, it kills the perf as it is no longer zero-copy.

Replies (1)

@Justin Moon, yeah, you can use nostrdb APIs directly for the zero-copy queries and nostr-sdk for the networking stuff. You can eventually clone the nostrdb instance and pass it to nostr-sdk just to automatically save the events received from the relays into nostrdb.