Re:Teach Yourself Computer Science
by bluejekyll on Tuesday March 14, 2017 @10:45AM
(#13867852)
Yes, if you can afford the allocation of the memory upfront Arrays are always faster :)
My point was more that understanding the semantics of the two types is important to how the program will run.
But then in the real world, arrays can still be faster than lists even when you're inserting a lot...
https://www.youtube.com/watch?v=YQs6IC-vgmo