Using a linked set for the relayDB is faster to loop through on mightContain

This commit is contained in:
Vitor Pamplona 2025-02-20 17:44:36 -05:00
parent 84a52a1ce0
commit 3220d793b4

View File

@ -34,7 +34,7 @@ class HintIndexer {
private val eventHints = BloomFilterMurMur3(10_000_000, 5)
private val addressHints = BloomFilterMurMur3(1_000_000, 5)
private val pubKeyHints = BloomFilterMurMur3(10_000_000, 5)
private val relayDB = hashSetOf<String>()
private val relayDB = mutableSetOf<String>()
private fun add(
id: ByteArray,