News for hackers. Stuff that matters.
Re:Linked List Problems (2002) [pdf] by coliveira on Saturday November 25, 2017 @01:11PM (#15777058)
If you already know your data (which must be the case with arrays anyway), you can simply pre-allocate a pool from where the elements of the linked list will be taken. This guarantees that elements will be allocated from the same region in memory. It is a simple technique that I use whenever I believe that a linked list will be needed in a high-performance context.

There are no comments on this comment yet.