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

Good luck trying to carefully align your C# arrays so that the length field (at index -1 and read accessed on basically every write) isn't in the same cache line as the 0th element the CPU across the bus is writing to.


The nice thing about using C# is that you don't need to use an array, if this is critical. With unsafe code, you can all but write C.




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

Search: