4 ms·
To take this even further, it's not the code that matters as much but the data access patterns and being able to have structured access patterns in ways that pr
by vvanders 4y ago
To take this even further, it's not the code that matters as much but the data access patterns and being able to have structured access patterns in ways that preserve cache locality.
C# actually does really well on this front in that it brings in value types front-and-center, although similar types of capabilities exist in Java(either through ByteBuffers or sun.misc.Unsafe) if a bit harder to use.
- adgjlsfhk1 4y agoI do find it really interesting that there was a whole generation of languages that forgot that memory layout mattered. the typical OO pile of pointers is about as bad as you can possibly imagine.
- kaba0 4y agoTheir memory layout patterns are not worse than the stereotypical C program with their linked lists due to its inability to have even a proper vector data structure.