bloom
bloom copied to clipboard
Remove the side effect of the `EstimateFalsePositiveRate` function
This pull request include three changes.
- Remove the side effect of the
EstimateFalsePositiveRatefunction. Using theCopyfunction will has no effect on the current object. - Remove the repeated
TestOrAddfunction. For theTestAndAddfunction, when thef.b.Test(l)gets thetrueresult, executing thef.b.Set(l)and not are same. So only gettingfalseto executef.b.Set(l)will decrease one step. Changing it will find theTestAndAddfunction is same as theTestOrAdd. - Update the
.gitignorefile to filter the.ideadirectory.