Skip to content

Commit 7ee0e1d

Browse files
committed
Saving
1 parent a258af3 commit 7ee0e1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fastfilter/src/main/java/org/fastfilter/xorplus/XorPlus8.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public XorPlus8(long[] keys) {
131131
}
132132

133133
seed = Hash.randomSeed();
134+
reverseOrderPos = 0;
135+
134136
// we use an second table t2 to keep the list of all keys that map
135137
// to a given entry (with a broken hash function, all keys could map
136138
// to entry zero).
@@ -155,7 +157,6 @@ public XorPlus8(long[] keys) {
155157
// == generate the queue ==
156158
// for each entry that is alone,
157159
// we remove it from t2, and add it to the reverseOrder list
158-
reverseOrderPos = 0;
159160
// the list of indexes in the table that are "alone", that is,
160161
// only have one key pointing to them
161162
// we have one list per block, so that one block can have more empty entries

0 commit comments

Comments
 (0)