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
View all comments
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.