jb55 on Nostr: it would be slow if it was in a relay app. you pay the cost of sending it over a ...
it would be slow if it was in a relay app. you pay the cost of sending it over a socket, parsing, etc.
with nostrdb its a single btree lookup into memory with a cache aligned struct pointer
Published at
2025-06-12 21:51:52Event JSON
{
"id": "12e2da80e55fb1c12f8e822baf1841158758b9892edeb5eb4479a56f8cf82610",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1749765112,
"kind": 1,
"tags": [
[
"client",
"Damus Notedeck"
],
[
"e",
"f59fbe042763931486fe1e60a7cd3b3330767d4e93a753e85493884934980049",
"",
"root"
],
[
"e",
"c0dea4f072d9bd9ae4011f10d2cab89c8ad33ea76f0b26217a6458dd8e9e2ea8",
"",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"dd664d5e4016433a8cd69f005ae1480804351789b59de5af06276de65633d319"
]
],
"content": "it would be slow if it was in a relay app. you pay the cost of sending it over a socket, parsing, etc.\n\nwith nostrdb its a single btree lookup into memory with a cache aligned struct pointer",
"sig": "091ac1b8f8bdbb09e1a96784545ec92a2effca282c55455ff8a376c6d8416fa2726862fa0f5a3d1d8c08fe63d973bbabd876dc6fd0eb499e5db3ee3988a18b97"
}