From 72fcb37f807c9b7395e60287bb5aa85d7cba9949 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 22:02:08 -0500 Subject: [PATCH] Unexport roaring.Container.Optimize --- roaring/roaring.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roaring/roaring.go b/roaring/roaring.go index 1e0f72a83..a1295fd80 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -500,7 +500,7 @@ func (b *Bitmap) Optimize() { citer, _ := b.Containers.Iterator(0) for citer.Next() { _, c := citer.Value() - c.Optimize() + c.optimize() } } @@ -1315,9 +1315,9 @@ func (c *Container) countRuns() (r int) { return 0 } -// Optimize converts the container to the type which will take up the least +// optimize converts the container to the type which will take up the least // amount of space. -func (c *Container) Optimize() { +func (c *Container) optimize() { if c.n == 0 { return } @@ -2142,7 +2142,7 @@ func intersectBitmapBitmap(a, b *Container) *Container { output.n += int(popcount(v)) } - output.Optimize() + output.optimize() return output } @@ -2621,7 +2621,7 @@ RUNLOOP: output.n += int(run.last - start + 1) } } - output.Optimize() + output.optimize() return output }