Hacker News new | ask | show | jobs
by jjmarr 8 days ago
I'm guessing their point is unlike binary trees which have two children per node, B trees can have as many children per node is best for cache locality/SIMD/etc. Which despite being "heavyweight" (wasted space if not all children per node are occupied) is faster in practice because it's cheaper to preload large unused blocks to cache rather than only access memory when it is needed.
1 comments

Every node in a binary tree needs a value and two child pointers, though. That's asymptotically almost twice as many child pointers per value as a B-tree has.
It’s a good thing this article isn’t about binary trees then.
The comment I replied to claimed that B-trees are "heavyweight" compared to binary trees. I thought it worth pointing out that the claim is only true for quite small trees.