-
Notifications
You must be signed in to change notification settings - Fork 214
implemented merge #582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implemented merge #582
Conversation
final int n = 50000; | ||
for (int i = 0; i < n / 2; i++) { | ||
qf1.insert(i); | ||
qf1.insert(i + n / 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be qf2.insert(i + n/2)
?
Otherwise there are not items in qf2
so we merge empty sketches as in the above test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that is a mistake
final long quotient = fifo.element(); | ||
final long fingerprint = other.getFingerprint(i); | ||
final long hash = quotient << other.getFingerprintLength() | fingerprint; | ||
System.out.println("q=" + quotient + ", fp=" + fingerprint + ", hash=" + hash); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this print statement be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
No description provided.