Update probabilities for bloom filter. (#12305)

See https://github.com/minio/minio/discussions/12285

Results in M=958506 K=7 and 119840 bytes per filter when serialized compared to 26176 bytes before.
This commit is contained in:
Klaus Post
2021-05-17 17:31:04 +02:00
committed by GitHub
parent f1e479d274
commit 55375fa7f6
2 changed files with 9 additions and 10 deletions
+1
View File
@@ -224,6 +224,7 @@ func TestDataUpdateTracker(t *testing.T) {
t.Fatal("wanted oldest index 3, got", bfr2.OldestIdx)
}
t.Logf("Size of filter %d bytes, M: %d, K:%d", len(bfr2.Filter), dut.Current.bf.Cap(), dut.Current.bf.K())
// Rerun test with returned bfr2
bf := dut.newBloomFilter()
_, err = bf.ReadFrom(bytes.NewReader(bfr2.Filter))