News for hackers. Stuff that matters.
Re:.NET 6 vs .NET 5 speedup by bob1029 on Sunday November 21, 2021 @11:33AM (#29297497)
> was .NET just alright in performance before all this

For some niche applications (i.e. financial exchanges), .NET 5 [was/is] arguably the fastest way to implement certain ring buffer abstractions because of its interesting blend of performance and safety. There is a variant of the LMAX Disruptor developed for .NET which leverages the value semantics of the C# struct to push things beyond what the Java implementations are capable of [0].

Certainly, with enough resources and manual memory management, you could best the C# implementations using a C/C++/ASM codebase, but this is a tenuous tradeoff with practical risks that must be accounted for.

  [0] https://medium.com/@ocoanet/improving-net-disruptor-performance-part-3-introducing-the-valuedisruptor-5b467730bbe
Re:.NET 6 vs .NET 5 speedup by jiggawatts on Sunday November 21, 2021 @07:21PM (#29301204)
Mark and sweep garbage collection is optimal for some kinds of multi-threaded algorithms. If further minimised with judicious use of value types, it can be surprisingly difficult to outperform it even with carefully tuned C++ or Rust code.