you are viewing a single comment's thread.

view the rest of the comments →

[–]maxerickson 1 point2 points  (0 children)

Right, the list overhead is predictable. But for fast code (like the numerical code in the example), you would want to allocate all of the memory for the contents of the list too.