Skip to content

Commit a258af3

Browse files
committed
Saving.
1 parent 5dfd4c5 commit a258af3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fastfilter/src/main/java/org/fastfilter/xor/Xor16.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public Xor16(long[] keys) {
4747
mainloop:
4848
do {
4949
seed = Hash.randomSeed();
50+
reverseOrderPos = 0;
5051
byte[] t2count = new byte[arrayLength];
5152
long[] t2 = new long[arrayLength];
5253
for (long k : keys) {
@@ -62,7 +63,6 @@ public Xor16(long[] keys) {
6263
}
6364
int[] alone = new int[arrayLength];
6465
int alonePos = 0;
65-
reverseOrderPos = 0;
6666
for (int nextAloneCheck = 0; nextAloneCheck < arrayLength; ) {
6767
while (nextAloneCheck < arrayLength) {
6868
if (t2count[nextAloneCheck] == 1) {

fastfilter/src/main/java/org/fastfilter/xor/Xor8.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public Xor8(long[] keys) {
5252
mainloop:
5353
do {
5454
seed = Hash.randomSeed();
55+
reverseOrderPos = 0;
5556
byte[] t2count = new byte[m];
5657
long[] t2 = new long[m];
5758
for (long k : keys) {
@@ -65,7 +66,6 @@ public Xor8(long[] keys) {
6566
t2count[h]++;
6667
}
6768
}
68-
reverseOrderPos = 0;
6969
int[][] alone = new int[HASHES][blockLength];
7070
int[] alonePos = new int[HASHES];
7171
for (int nextAlone = 0; nextAlone < HASHES; nextAlone++) {

0 commit comments

Comments
 (0)