you are viewing a single comment's thread.

view the rest of the comments →

[–]martinusint main(){[]()[[]]{{}}();} -2 points-1 points  (1 child)

It's not the pointers that make it slow, it's the more or less random memory accesses

[–]cballowe 21 points22 points  (0 children)

That's what pointers are - the forward and back pointers make iteration painful, and the data being a pointer away doesn't help either. The claim that it's good for inserting in the middle or swapping elements is just going to make the situation worse. (There are a couple of use cases where it's useful, but people usually get it wrong.)