News for hackers. Stuff that matters.
Re:On C Linked Lists (Profiling and Optimizing) by RodgerTheGreat on Sunday December 12, 2010 @02:18PM (#1997710)
If those CS students pay attention in their algorithms class, they'll learn that the amortized cost of insertions and removals at the end of a load-based resizable array is still constant anyway. As you say, the overhead of a malloc tremendously dominates a few instruction's worth of logic for capacity checks.

There are no comments on this comment yet.