Skip to content

Commit

Permalink
cleanup 4
Browse files Browse the repository at this point in the history
  • Loading branch information
aliszka committed Nov 5, 2024
1 parent 9db3ec2 commit 4f47ed6
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions bitmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,58 +548,6 @@ func (ra *Bitmap) Contains(x uint64) bool {
return false
}

// func (ra *Bitmap) Contained(xs []uint64) ([]uint64, time.Duration) {
// if ra == nil || ra.IsEmpty() {
// return []uint64{}, 0
// }
// if len(xs) == 0 {
// return []uint64{}, 0
// }

// // slices.SortFunc(xs, func(a, b uint64) int {
// // if a > b {
// // return 1
// // }
// // if a < b {
// // return -1
// // }
// // return 0
// // })

// bm := FromSortedList(xs)
// t := time.Now()
// bm.And(ra)
// // a := bm.ToArray()
// d := time.Since(t)
// return nil, d
// }

// func (ra *Bitmap) Contained2(xs []uint64, bufs [][]uint16) ([]uint64, time.Duration) {
// if ra == nil || ra.IsEmpty() {
// return []uint64{}, 0
// }
// if len(xs) == 0 {
// return []uint64{}, 0
// }

// // slices.SortFunc(xs, func(a, b uint64) int {
// // if a > b {
// // return 1
// // }
// // if a < b {
// // return -1
// // }
// // return 0
// // })

// bm := FromSortedList(xs)
// t := time.Now()
// bm.AndConcurrently(ra, bufs...)
// // a := bm.ToArray()
// d := time.Since(t)
// return nil, d
// }

func (ra *Bitmap) Remove(x uint64) bool {
if ra == nil {
return false
Expand Down

0 comments on commit 4f47ed6

Please sign in to comment.