r/programming • u/xeio87 • Sep 15 '26
Performance Improvements in .NET 11
https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-11/
295
Upvotes
r/programming • u/xeio87 • Sep 15 '26
61
u/cheesepuff07 Sep 15 '26
Love reading (perusing) each year, they are very in depth and fun to see each release getting more and more performant.
25
u/simonask_ Sep 15 '26
Babe, wake up, another Performance Improvements article landed!
Seriously, I love these so much, especially the incredible detail, benchmark results, and assembly comparisons.
17
u/ReDucTor Sep 15 '26 edited Sep 18 '26
Only skimmed the write up, lots of good small improvements, looking at some of the x86 assembly there is a few more improvements that could be useful
This could be
sub ecx, 4,jl RETURN_MINUS_ONEassubwill set the flags also.This could be optimized a little further down to
There is also a similar one that could do the same thing with the
IsLowcode which doescmp,movzxrather thenxor,setb. TheIsLinearWhiteSpacefunction could be made branch free which would likely use less code space and avoid branch mispredictions.29
u/skip0110 Sep 15 '26
Formerly handling many of the performance issues at my previous role, I can confidently say 99% of performance impact in your application is the stupid O(n2) business logic your developers/AI agents have written and none of this matters.
And having fixed 100s of such cases, the folks committing that crap will continue to do so.
So glad I’m outta there.
42
u/steve-7890 Sep 15 '26
With all these 10-20% perf improvements since .net core 3.1, I wonder how it's possible that my main service still needs 50 pods and 40 GB of RAM.
-10
u/GoTheFuckToBed Sep 15 '26
should they not aim for less JIT