|
|
|
|
|
by koverstreet
5069 days ago
|
|
I did read it. And none of that stuff about cache behavior _matters_ when your data isn't in cache and you're spending 70 ns on every loop iteration waiting for the next key to fetch from dram. One of the first things to learn about caches is how dependent modern processors are on prefetching, and a binary search just completely breaks prefetching. |
|
"optimal is a binary search tree in an array, like the way heaps are implemented."
I leave it to other people to read the article first, then your comment, then vote accordingly. For shame.