performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1624 articles Updated Page 2 of 65
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 2 of 65
Newest first
-
The Tiny C# Attribute That Stops Your Stack Being Zeroed
Medium Issue #549
There is a one-line C# attribute that tells the runtime it doesn’t need to initialise your local variables to zero before a method starts…
-
EF Core N+1 Query Problem: How to Detect, Measure, and Fix Excessive Database Queries
Medium Issue #549
Your EF Core application can return the correct data, pass every functional test, and still have a serious database performance problem.
-
I Rebuilt C#’s DataTable: Up to 70% Less Memory, 2.9× Faster
Medium Issue #549
C#’s DataTable is shipped with .NET Framework 1.0 in 2002. It has never been rebuilt. Here is a reimagined column-oriented storage version…
-
Bringing Correctly Rounded Math to Production with LLVM-libc
Microsoft Dev Blogs Issue #548
As we mentioned in the last cmath blog post, MSVC is using LLVM-libc for compile-time evaluation and runtime execution of math functions when /Zc:cmath is enabled. I invited LLVM-libc contributors Mic...
-
-
Best Practices for High-Performance .NET Web APIs
Medium Issue #547
In today’s software development landscape, building high-performance APIs is essential for providing users with a fast, reliable, and…
-
Entity Framework Core Performance: 10 Mistakes I Keep Seeing in Production Code
Medium Issue #547
Entity Framework Core makes database access feel deceptively simple. You write a LINQ query, call ToListAsync(), get your objects back and… Continue reading on CodeToDeploy »
-
Is Any() Really Better Than Count() > 0?
Medium Issue #546
Like everything else in life, it depends.
-
Adding an Index Made This Query Slower
Milan's .NET Weekly Issue #546
A query already had a usable index. Adding another index made Postgres choose a plan that discarded almost half a million rows to return ten.
-
std::call_once vs. std::async
Microsoft Dev Blogs Issue #545
Last time, we compared magic statics with std::call_once and concluded that std::call_once lets you construct magic statics-like behavior for non-static variables. But there is also
-
Performance Improvements in .NET 11
Microsoft Dev Blogs Issue #545
Before television shows like The Office and Parks and Recreation cemented the mockumentary in the minds of millions, there was Christopher Guest. He didn't invent the genre, but he's widely recognized...
-
Magic statics vs. std::call_once
Microsoft Dev Blogs Issue #545
Suppose you have some function like bool should_use_widgets() { bool supported = ⟦ complex code to check OS features ⟧; return supported && is_configuration_enabled("widgets"); } Since OS Widget suppo...
-
Optimistic vs Pessimistic Concurrency in .NET
Medium Issue #545
Almost everyone had this situation in production: a customer changed the delivery address on a shipment, saved it, saw the confirmation… Continue reading on CodeX »
-
Microsoft.Extensions.AI Failover: Benchmarking Multi-Provider AI Recovery
C# Corner Issue #544
Learn how to benchmark Microsoft.Extensions.AI failover across multiple AI providers, measuring recovery time, latency, reliability, retries, and operational cost.
-
Why is the x86 undefined instruction called ud2 ? Why 2?
Microsoft Dev Blogs Issue #544
If you look at x86 compiler output (or if, like me, you're looking at a crash caused by some software that tried to detour an API), you may see an instruction ud2. What's up with that? The ud2 instruc...
-
E4: Optimize performance and scalability with Azure SQL Database Hyperscale
YouTube Issue #543
Bob and Anna demo Azure SQL Database Hyperscale’s unique architecture, including independent scaling for compute and storage to help manage changing application demands without disruptions. 0:00: Intr...
-
Numerics.NET with Jeffrey Sax
.NET Rocks! Issue #542
So what can numerics do for you? Carl and Richard talk to Jeffrey Sax about his work building Numerics.NET, a collection of general-purpose mathematical and statistical classes built for .NET. Jeffrey...
-
How to Build High-Performance Distributed Systems with .NET Core — By Najeeb Ullah
Medium Issue #542
Building large-scale enterprise applications requires deep architectural knowledge and efficient coding practices. As a Top .NET Creator…
-
.NET R&D Digest (August, 2026)
WordPress Issue #542
This issue includes bits of life story, AI, C#, security, performance, Aspire, TDD, .NET and of course .NET Internals.
-
Async Await Just Got A Massive Improvement in .NET
YouTube Issue #541
Learn Hands-On for Free at Dometrain: https://dometrain.com/courses/?ref=nick-chapsas&promo=youtube Hello, everybody. I'm Nick, and in this video, I will talk about the new .NET 11 Runtime Async featu...
-
Reducing Token Usage
YapCast – Jesse Liberty Issue #541
If you want to hold costs down, efficient resource management is paramount. One of the critical resources in AI applications is token usage. Tokens are the basic units of text that models process, and...
-
Counting to int.MaxValue — and Learning Thread Synchronization Along the Way in C#
Medium Issue #539
After reading and exploring various blogs and books about threads in C#, I started thinking about what example I could work on to dig into…
-
Boost Your .NET Projects with Spargine: Simplify Thread Pool Execution with ThreadPoolHelper
dotNetTips.com Issue #539
Spargine's ThreadPoolHelper simplifies concurrent execution in .NET applications by providing reusable APIs that manage thread pool operations. It supports single and batch operations, bounded concurr...
-
[.NET] Task vs ValueTask — understand the differences like a pro
Medium Issue #539
Before we explain the differences between Task and ValueTask, we should understand why Task became the core building block of async…
-
How fast is .NET 11 Runtime Async?
C# Digest Issue #539
Runtime Async is a new asynchronous execution model arriving in .NET 11.