News for hackers. Stuff that matters.
Re:Why databases use ordered indexes but programming uses ha... by AstralStorm on Tuesday December 10, 2019 @04:48AM (#21751087)
TLB hierarchy is not a B-tree, it is a trie in all of the CPUs. Very different layout (not balanced and also hard sized), much faster on happy path.

Making a 48-bit B-tree would have a bit of a memory problem making TLB huge.

And then CPU cache is an array. Single virtual memory access is bound to be a single physical as well, with minor exceptions for NUMA nodes being crossed.

Re:Why databases use ordered indexes but programming uses ha... by cperciva on Tuesday December 10, 2019 @06:22AM (#21751495)
There's a reason I said "looks very much like" rather than "is". ;-)