News for hackers. Stuff that matters.
Re:It’s Faster Because It’s C by tedunangst on Tuesday July 13, 2010 @05:37PM (#1512852)
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.
Re:It’s Faster Because It’s C by barrkel on Wednesday July 14, 2010 @01:27AM (#1513688)
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.