From 7931bc2c3703ef22adfb601fa0e21820699e84f2 Mon Sep 17 00:00:00 2001 From: Richard Artoul Date: Thu, 29 Nov 2018 14:26:57 -0500 Subject: [PATCH] Add comment --- roaring/roaring.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roaring/roaring.go b/roaring/roaring.go index e0fa9948c..8d612b5e5 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -592,6 +592,10 @@ func (b *Bitmap) unionIntoTarget(target *Bitmap, others ...*Bitmap) { otherIters[j].handled = true } } + + // Now that we've calculated a container is that a union of all the containers + // with the same key across all the bitmaps, we store it in the list of containers + // for the target. target.Containers.Put(iKey, container) } }