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

If your struct covers more than one cache line, you may want to think about which members are accessed together and put those in the same cache line. E.g. if you manage to fit all frequently accessed members in the first cache line, you will bring likely useful data into the cache when you access any of them. At the same time you avoid cache pollution with not so useful data from other cache lines.





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

Search: