We currently use two separate slices for the bit vector and collision vector:
// bcVector represents a combined bit and collision vector.
type bcVector struct {
v []uint64
c []uint64
}
This could lead to cache misses on every access.
Here are two ideas we could try.
For Option 1, instead of using:
We can do this:
(Calculating x will be more complicated though.)
We currently use two separate slices for the bit vector and collision vector:
This could lead to cache misses on every access.
Here are two ideas we could try.
Find, since it may need to traverse more levels.For Option 1, instead of using:
We can do this:
(Calculating
xwill be more complicated though.)