by alain94040 · 3y ago · 0 comments
There is a data dependency: until I read the middle index, I can't tell if I want to search the data in the upper section or the lower section. I can speculate and issue reads to both. That would fix the dependency, but create more memory traffic. Is this the right trade-off?
What do you want? Removing branches is not it.
Of course, you could keep a cacheable partial index of your huge dataset to accelerate the early part of your search as well.