Rusty Russell on Nostr: I'm confused. If you want to know "does this have muted words in it?" that's one bit? ...
I'm confused. If you want to know "does this have muted words in it?" that's one bit? If you want to support dynamically changing mute words then you probably do a pair of generation numbers (one for words added to mute list, one for words removed) and then recalc on the fly if it could be a false negative / positive.
The performance difference between a 50% full hash table and a 100% full is minimal in practice. And if you don't use the bitstuffing tricks of ccan/htable you will get a second cache hit to actually validate the miss.
Published at
2024-11-21 09:46:15Event JSON
{
"id": "6dcc8e7f3aba6e63ce2f88bc89f6d5b51cc0b07b3fa71fce9f7683a61fed974d",
"pubkey": "f1725586a402c06aec818d1478a45aaa0dc16c7a9c4869d97c350336d16f8e43",
"created_at": 1732182375,
"kind": 1,
"tags": [
[
"e",
"70fc146a8bbde7628cef73e54e96455eba0e05ba567ef491bf08ead9cd547700",
"",
"root"
],
[
"e",
"84e9bdd62b2ff6a71e6f25a162860f418d469627e0cbeb1a45a768fec46a6c1a"
],
[
"e",
"dcde032a7c419ec629e052911de7112a0b18e005e1e6f2d7a8113e6958f0975f",
"",
"reply"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"f1725586a402c06aec818d1478a45aaa0dc16c7a9c4869d97c350336d16f8e43"
]
],
"content": "I'm confused. If you want to know \"does this have muted words in it?\" that's one bit? If you want to support dynamically changing mute words then you probably do a pair of generation numbers (one for words added to mute list, one for words removed) and then recalc on the fly if it could be a false negative / positive. \n\nThe performance difference between a 50% full hash table and a 100% full is minimal in practice. And if you don't use the bitstuffing tricks of ccan/htable you will get a second cache hit to actually validate the miss.",
"sig": "2a6fd4985d02f058d1be42aa539dbe08f02d199e9961c6ca7931c07d6fc25a7da47c8091d7bd4f17e77193e40de304880a250783b47569b5a41eb66974152814"
}