Hacker News new | ask | show | jobs
by saagarjha 2307 days ago
> A node is a simple structure of sixteen 32 bit values. The values are 'pointers' to next nodes, at given character of the SHA-1 hash. So, one node takes 16 * 4B = 64B.

I have often used a dictionary to store tries to prevent this kind of memory usage–it's auto-resizing, if slightly slow. But hey, you're chasing pointers anyways, so it's not like going through the tree was going to be fast anyways…

(I'm also curious about the "scumbag Steve" hat on the B-tree, but I digress.)