by pubby · 6y ago · 0 comments
The conclusion is still that CMOV is best, but once the data stops fitting in the cache there's alternatives worth considering.
> For readers only interested in an executive summary, our results are the following: For arrays small enough to be kept in L2 cache, the branch-free binary search code is the fastest algorithm. For larger arrays, the Eytzinger layout, combined with the branch-free prefetching search algorithm is the fastest general-purpose layout/search algorithm combination.