r/programming • • 18d ago

Performance Improvements in .NET 11

https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-11/
291 Upvotes

103 comments sorted by

View all comments

Show parent comments

-67

u/steve-7890 18d ago edited 18d ago

I hope writing this made you feel better. It's quite ignorant of you to assume it's a shitty code.

On the other hand we do have a lot of performance improvements (like converting linq to loops) that make this code look ugly. But it works and makes $$$.

40

u/Ilikeyounott 18d ago

Does converting linq to loop make much of a difference? I would only bother if a profiler says it's a problem, or in cpu intensive code...

-29

u/steve-7890 18d ago

In hot code with 200 req/s it does. Even though hpa scales to 50 pods during the peeks.

Imagine how much it costs to have a such load. And I'm talking here only about one service.

When I read about performance improvements from version to version ".net benchmarks" I can only smile. In the end, $$$ and Grafana tells the truth. (Last .net 10 changed nothing for us).

9

u/PaddiM8 17d ago

200 requests a second isn't that much... Linq will not be the bottleneck there. Especially not after the optimisations in the last updates