fix comment

This commit is contained in:
Richard Artoul 2018-11-29 15:33:26 -05:00
parent 06e7dbdc75
commit 4cdf2adbe5

View file

@ -605,8 +605,8 @@ func (b *Bitmap) unionIntoTarget(target *Bitmap, others ...*Bitmap) {
// Performing the popcount() operation with every union is wasteful because
// its likely the value will be invalidated by the next union operation. As
// a result, when we're performing all our in-place unions, we don't repair
// the value of n (container cardinality), and then at the very end we perform
// a result, when we're performing all our in-place unions we allow the value of
// n (container cardinality) to fall out of sync, and then at the very end we perform
// a "Repair" to recalculate all the container values. That way we never popcount()
// an entire bitmap container more than once per bulk union operation.
target.Containers.Repair()