7 ms·
This is where hand-rolled intrusive data structures, as are traditional in C, really shine.
by irdc 21d ago
This is where hand-rolled intrusive data structures, as are traditional in C, really shine.
- jmalicki 20d agoEven 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.