MCPcopy
hub / github.com/RoaringBitmap/roaring / RunOptimize

Method RunOptimize

roaring.go:397–399  ·  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

395
396// RunOptimize attempts to further compress the runs of consecutive values found in the bitmap
397func (rb *Bitmap) RunOptimize() {
398 rb.highlowcontainer.runOptimize()
399}
400
401// HasRunCompression returns true if the bitmap benefits from run compression
402func (rb *Bitmap) HasRunCompression() bool {

Callers 15

TestStringerCOWFunction · 0.95
TestFastCardCOWFunction · 0.95
TestIssue440Function · 0.95
TestIssue440_2Function · 0.95
TestIssue440_3Function · 0.95
TestIssue440_4Function · 0.95
TestIssue440_5Function · 0.95
hashTestFunction · 0.95
TestStringerFunction · 0.95
TestFastCardFunction · 0.95

Calls 1

runOptimizeMethod · 0.45

Tested by 15

TestStringerCOWFunction · 0.76
TestFastCardCOWFunction · 0.76
TestIssue440Function · 0.76
TestIssue440_2Function · 0.76
TestIssue440_3Function · 0.76
TestIssue440_4Function · 0.76
TestIssue440_5Function · 0.76
hashTestFunction · 0.76
TestStringerFunction · 0.76
TestFastCardFunction · 0.76