|
|
|
|
|
by SPBS
306 days ago
|
|
> And as a consequence, C# can pack the value types directly in the generic data structure, instead of holding references to heap-allocated objects. > This is very important both for cache locality and for minimizing garbage collector pressure. How is C# just not straight-up faster than Java then? Instead of both language punching around the same weight on benchmarks? Doesn't cache locality like, have a huge effect on performance? |
|
In many aspects C# is. I remember listening to a talk from Microsoft (admittedly) where using 100% latest features was on average faster than Java