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

Method Less

priorityqueue.go:18–20  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

16func (pq priorityQueue) Len() int { return len(pq) }
17
18func (pq priorityQueue) Less(i, j int) bool {
19 return pq[i].value.GetSizeInBytes() < pq[j].value.GetSizeInBytes()
20}
21
22func (pq priorityQueue) Swap(i, j int) {
23 pq[i], pq[j] = pq[j], pq[i]

Callers 3

TestRoaringContainerFunction · 0.45
TestLTFunction · 0.45
TestLTFunction · 0.45

Calls 1

GetSizeInBytesMethod · 0.45

Tested by 3

TestRoaringContainerFunction · 0.36
TestLTFunction · 0.36
TestLTFunction · 0.36