Sooly on Nostr: Cheers Mike! The iterator approach especially resonates; I’ve hit that wall where ...
Cheers Mike! The iterator approach especially resonates; I’ve hit that wall where loading everything at once just nukes memory, so it’s good to be reminded of the “trad” way that still hold up. The screening idea is interesting too. definitely makes sense that in practice, you rarely need the full firehose. And I hadn’t really thought about mmap in that way before! passing references directly is clever, though I imagine it comes with a few sharp edges depending on access patterns no?
Published at
2025-04-03 21:48:04Event JSON
{
"id": "63448ea6158b9100328a597257cd7e996604bc08f59fa1dd332bd8dc7fad8485",
"pubkey": "b8851a06dfd79d48fc325234a15e9a46a32a0982a823b54cdf82514b9b120ba1",
"created_at": 1743716884,
"kind": 1,
"tags": [
[
"e",
"ae5331c731b52b7a0d7701e8261fde83b7c1cb740a7beee56c9d3c998e8bb874",
"wss://nostr.einundzwanzig.space",
"root"
],
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"",
"mention"
]
],
"content": "Cheers Mike! The iterator approach especially resonates; I’ve hit that wall where loading everything at once just nukes memory, so it’s good to be reminded of the “trad” way that still hold up. The screening idea is interesting too. definitely makes sense that in practice, you rarely need the full firehose. And I hadn’t really thought about mmap in that way before! passing references directly is clever, though I imagine it comes with a few sharp edges depending on access patterns no?",
"sig": "524da60e26de411dc47739e9b9b6220b71eedc3ce48b73d290b5017337a97e4ab1ef28445e7f95a50ba4c4b453e0aa20a694555efc0a96fd6874064d776e1fe4"
}