mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
record stats for intersectionCallback under the right name
This commit is contained in:
parent
68a051206f
commit
f538629c29
1 changed files with 4 additions and 4 deletions
|
|
@ -4520,7 +4520,7 @@ func intersectionCallbackArrayRun(a, b *Container, fn func(uint16)) {
|
|||
}
|
||||
|
||||
func intersectionCallbackRunRun(a, b *Container, fn func(uint16)) {
|
||||
statsHit("intersectionCount/RunRun")
|
||||
statsHit("intersectionCallback/RunRun")
|
||||
ra, rb := a.runs(), b.runs()
|
||||
na, nb := len(ra), len(rb)
|
||||
for i, j := 0, 0; i < na && j < nb; {
|
||||
|
|
@ -4560,14 +4560,14 @@ func intersectionCallbackRunRun(a, b *Container, fn func(uint16)) {
|
|||
}
|
||||
|
||||
func intersectionCallbackBitmapRun(a, b *Container, fn func(uint16)) {
|
||||
statsHit("intersectionCount/BitmapRun")
|
||||
statsHit("intersectionCallback/BitmapRun")
|
||||
for _, iv := range b.runs() {
|
||||
bitmapCallbackRange(a.bitmap(), int32(iv.Start), int32(iv.Last)+1, fn)
|
||||
}
|
||||
}
|
||||
|
||||
func intersectionCallbackArrayBitmap(a, b *Container, fn func(uint16)) {
|
||||
statsHit("intersectionCount/ArrayBitmap")
|
||||
statsHit("intersectionCallback/ArrayBitmap")
|
||||
bitmap := b.bitmap()
|
||||
ln := len(bitmap)
|
||||
for _, val := range a.array() {
|
||||
|
|
@ -4583,7 +4583,7 @@ func intersectionCallbackArrayBitmap(a, b *Container, fn func(uint16)) {
|
|||
}
|
||||
|
||||
func intersectionCallbackBitmapBitmap(a, b *Container, fn func(uint16)) {
|
||||
statsHit("intersectionCount/BitmapBitmap")
|
||||
statsHit("intersectionCallback/BitmapBitmap")
|
||||
ab, bb := a.bitmap(), b.bitmap()
|
||||
for i := range ab {
|
||||
w := ab[i] & bb[i]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue