performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1668 articles Updated Page 4 of 67
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 4 of 67
Newest first
-
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.
-
The Bug That Only Shows Up Under Load: A Backend Engineer’s Guide to Concurrency
publication.masteringbackend.com Issue #537
Concurrency Will Break Your System Quietly — Here’s How to Avoid That Continue reading on MasteringBackend »
-
Stop Caching Everything: The Grey Logic Behind High-Performance Applications
Medium Issue #536
Performance tuning is often approached with a simple mindset:
-
6 Ways to Speed Up Your .NET Web API
Medium Issue #535
Caching, async, pagination, compression, EF Core and pooling.
-
Ever Accidentally Written a C# Fork Bomb?
Medium Issue #535
We’ve all seen standard background worker patterns where a main process manages or kicks off a worker routine. But if you aren’t careful…
-
Reduce Error Message Allocations with a .NET JSON Schema Validation Option
blog.devgenius.io Issue #535
High-performance JSON Schema validation is not only about accepting valid input quickly. In many real systems, the harder path is… Continue reading on Dev Genius »
-
Every Locking Primitive in C# — And When to Actually Use Each One
Medium Issue #535
For a long time, I used only one tool whenever I saw concurrency problems.