Vitor Pamplona on Nostr: You are not avoiding it. You are making an entire DB to mimic garbage collection ...
You are not avoiding it. You are making an entire DB to mimic garbage collection because you don't have garbage collection. I fell like I am the one avoiding everything you went through to make it.
And I am happy you are doing it. I really do. All I am asking is this discussion is to provide performance indicators that allows us to compare the complete performance with other stacks.
If I compare my cache with your DB already in memory, the performance is exactly the same. Mine might be slower because it is full thread safe for 1000s of reads and writes in the same millisecond. But that's it. Basically its the difference between B+ trees vs hash tables.
So, if I follow 500 people and use 5 Nostr apps, do you truly think duplicating 500 profiles in memory on each of those apps is an "efficient" use of memory?
Published at
2025-01-03 15:24:10Event JSON
{
"id": "c82b6e35427ff137a9881482520bce81688097de5f9561f68a4867ea06f598cb",
"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"created_at": 1735917850,
"kind": 1,
"tags": [
[
"e",
"05e7fc88045568f680a574bc24daba3e3da3815ef9d6c10c8082c3fa9e4ac742",
"",
"root"
],
[
"e",
"34f42af2e05219111fede3b3b9191cf53da3611ad69100a52c8deffd0d607c11"
],
[
"e",
"6b5c0a921b49a3620bbadba0c4feb2f8c0d62c5797746e73429ba63cb43e6adc",
"",
"reply"
],
[
"p",
"726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
]
],
"content": "You are not avoiding it. You are making an entire DB to mimic garbage collection because you don't have garbage collection. I fell like I am the one avoiding everything you went through to make it. \n\nAnd I am happy you are doing it. I really do. All I am asking is this discussion is to provide performance indicators that allows us to compare the complete performance with other stacks. \n\nIf I compare my cache with your DB already in memory, the performance is exactly the same. Mine might be slower because it is full thread safe for 1000s of reads and writes in the same millisecond. But that's it. Basically its the difference between B+ trees vs hash tables.\n\nSo, if I follow 500 people and use 5 Nostr apps, do you truly think duplicating 500 profiles in memory on each of those apps is an \"efficient\" use of memory?",
"sig": "1c5a40485f4e28e70a24710147e00438527d2a0a1e35e6a14ea74cf5f9f53e1c6f1766cef13e1f07b8504e69dd828b14e1690a8c28e42542a9440161e2186920"
}