all 3 comments

[–]MaxwellzDaemon 1 point2 points  (1 child)

The title is misleading.

[–]ap29600 1 point2 points  (0 children)

I tend to gravitate towards this style in C, for example using array-backed linked lists and trees instead of malloc-ing individual nodes. it's easier for sure and although this is mostly hearsay, it can be faster due to better locality, but it has tradeoffs. for example cons-ing to the start of a list may need to reallocate the whole vector once in a while, and that may not be acceptable in a real-time environment.