Y
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
htgb
2905 days ago
That's a good point, thanks.
link