Hacker News new | ask | show | jobs
by adrianN 2905 days ago
If the list fits in cache it is often to faster to insert into a dynamic array and shift the elements. It of course depends a bit on the allocator that you use how expensive creating a new list node is.
1 comments

That's a good point, thanks.