File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class XorFilter {
5858 explicit XorFilter (const size_t size) {
5959 hasher = new HashFamily ();
6060 this ->size = size;
61- this ->arrayLength = 3 + 1.23 * size;
61+ this ->arrayLength = 32 + 1.23 * size;
6262 this ->blockLength = arrayLength / 3 ;
6363 fingerprints = new FingerprintType[arrayLength]();
6464 std::fill_n (fingerprints, arrayLength, 0 );
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class XorFilter2 {
7373 explicit XorFilter2 (const size_t size) {
7474 hasher = new HashFamily ();
7575 this ->size = size;
76- this ->arrayLength = 3 + 1.23 * size;
76+ this ->arrayLength = 32 + 1.23 * size;
7777 this ->blockLength = arrayLength / 3 ;
7878 fingerprints = new FingerprintStorageType (arrayLength);
7979 }
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class XorFilter2n {
6868 explicit XorFilter2n (const size_t size) {
6969 hasher = new HashFamily ();
7070 this ->size = size;
71- this ->arrayLength = 3 + 1.23 * size;
71+ this ->arrayLength = 32 + 1.23 * size;
7272 this ->blockLength = 1 ;
7373 while (this ->blockLength < arrayLength / 3 ) {
7474 this ->blockLength *= 2 ;
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ class XorFilterPlus {
201201 explicit XorFilterPlus (const size_t size) {
202202 hasher = new HashFamily ();
203203 this ->size = size;
204- this ->arrayLength = 3 + 1.23 * size;
204+ this ->arrayLength = 32 + 1.23 * size;
205205 this ->blockLength = arrayLength / 3 ;
206206 }
207207
You can’t perform that action at this time.
0 commit comments