|
|
|
|
|
by sischoel
1871 days ago
|
|
Although it is possible to create branchless binary search. Here is one article: https://schani.wordpress.com/2010/04/30/linear-vs-binary-sea..., there are probably other ways to do that. Another interesting question where one could sink a lot of time is how do to binary search on GPU's using multiple threads. There branching in multiple threads at the same time is also bad, but for slightly different reasons. |
|
GPUs aren't really built for latency though and this will waste a lot of accesses on speculation. You are probably better off with a good btree.