mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-17 21:31:57 +01:00
Using a linked set for the relayDB is faster to loop through on mightContain
This commit is contained in:
parent
84a52a1ce0
commit
3220d793b4
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user