MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / RunOptimize

Method RunOptimize

roaring64/roaring64.go:191–193  ·  view source on GitHub ↗

RunOptimize attempts to further compress the runs of consecutive values found in the bitmap

()

Source from the content-addressed store, hash-verified

189
190// RunOptimize attempts to further compress the runs of consecutive values found in the bitmap
191func (rb *Bitmap) RunOptimize() {
192 rb.highlowcontainer.runOptimize()
193}
194
195// HasRunCompression returns true if the bitmap benefits from run compression
196func (rb *Bitmap) HasRunCompression() bool {

Callers 12

TestStringerCOWFunction · 0.95
TestFastCardCOWFunction · 0.95
compareValueFunction · 0.95
transposeFunction · 0.95
ParOrMethod · 0.95
UnmarshalBinaryMethod · 0.95
batchEqualFunction · 0.95
testAggregationsFunction · 0.95
TestStringerFunction · 0.95
TestFastCardFunction · 0.95
TestBitmapFunction · 0.95

Calls 1

runOptimizeMethod · 0.45

Tested by 7

TestStringerCOWFunction · 0.76
TestFastCardCOWFunction · 0.76
testAggregationsFunction · 0.76
TestStringerFunction · 0.76
TestFastCardFunction · 0.76
TestBitmapFunction · 0.76