Skip to content
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

bloom: Remove the side effect of the EstimateFalsePositiveRate function #80

Closed
wants to merge 1 commit into from

Conversation

SimFG
Copy link
Contributor

@SimFG SimFG commented Aug 17, 2022

Remove the side effect of the EstimateFalsePositiveRate function. Using the Copy function will has no effect on the current object.

@SimFG
Copy link
Contributor Author

SimFG commented Aug 18, 2022

@lemire Help me review this pull request :>

@lemire
Copy link
Member

lemire commented Aug 18, 2022

It is not clear why this is needed. You can just do...

something := f.Copy()
something.EstimateFalsePositiveRate()

If we don't want to empty the filter, we can do something smarter.

@lemire
Copy link
Member

lemire commented Aug 18, 2022

You are right that this function is nasty. I suggest to break it totally and to provide something new instead:

#83

@lemire lemire closed this Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants