Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
irdc
· 3mo ago · 0 comments
This is where hand-rolled intrusive data structures, as are traditional in C, really shine.
Comments
[–]
jmalicki
3mo ago
Even in C, if you want differently sized data to be indexable in O(1), you're stuck leaving them as pointers. You definitely could just have a variable-sized area for this, but that level of optimization is pretty seldomly done in C.