From 26c7ccf061134388c0a5ff09eaa729809ea5181a Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Wed, 11 Sep 2024 08:12:15 -0400 Subject: [PATCH] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index ddce91a..14c7b66 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,6 @@ type BinaryFuse8 struct { SegmentLengthMask uint32 SegmentCount uint32 SegmentCountLength uint32 - Fingerprints []uint8 } ``` @@ -71,7 +70,7 @@ By default, we use 8-bit fingerprints which provide a 0.4% false positive rate. this false positive rate at the expensive of more memory usage. For this purpose, we provide a generic type (`NewBinaryFuse[T]`). -``` +```Go filter8, _ := xorfilter.NewBinaryFuse[uint8](keys) // 0.39% false positive rate, uses about 9 bits per key filter16, _ := xorfilter.NewBinaryFuse[uint16](keys) // 0.0015% false positive rate, uses about 18 bits per key filter32, _ := xorfilter.NewBinaryFuse[uint32](keys) // 2e-08% false positive rate, uses about 36 bits per key