Comment

Comment by twic

There is such a thing as an unrolled linked list, which is a bit like a flat B-tree:

https://en.wikipedia.org/wiki/Unrolled_linked_list

They ought to have quite good properties. In particular, if you are appending one element at a time, they never need to copy, but are also quite dense. Iteration is then fast. Feels like it should be useful for buffering and aggregation type jobs. I have never seen one in a library.

parent twic 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton