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

It’s all good in theory, not in practice.

> only when you need to "modify" that object

Well, unless you’re modifying your data, almost all data structures are fine for multithreaded access.

> Linked lists are an example of where this works remarkably well

Linked lists are an example of what you don’t want to use if you care about performance even a tiny bit.

On modern hardware, random memory access is slow. A ballpark estimate is 100-200 CPU cycles just to read a single value (16 bytes for dual-channel DDR) from RAM. With a linked list you pay that cost with each iteration to the next list element. Very expensive.



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

Search: