Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not with large data sizes it doesn't. Which is the whole point. Array would be even slower than the list on insert because you actually have to move much more data around.

The one thing array is better at its sometimes locality, especially if you iterate over neighbouring elements.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: