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.
Login to reply
Replies (2)
the enostr stuff is old and crufty. i was working on a networking side of nostrdb at one point but it fell by the wayside for the time being

GitHub
add nostrdb_net, split into crates by jb55 · Pull Request #32 · damus-io/nostrdb-rs
This is just enostr from notedeck!
Fixes:
nostrdb-net #29
@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.