Skip to content

Comment on Things you shouldn't do: Two pointers in one field.parent

Comments

Last time I actually needed to do this, I allocated memory in larger chunks instead, and made a linked list of those chunks.

The number of situations where this particular solution is the best solution is really small!

The name for this is an "Unrolled linked list," in the same semantic fashion as an unrolled loop. Congratulations!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.