performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1551 articles Updated
.NET performance optimization is the focus of this topic page. .NET Performance and Optimization is how .NET teams reason about runtime cost, startup, and throughput once the feature work is done. Intermediate and senior .NET developers use this hub to scan practical writing without treating every link as an endorsement.
Recurring subtopics in recent issues include .NET performance optimization, C# performance, ASP.NET Core performance, and .NET profiling. Those themes are drawn from titles and excerpts in the newest archive entries for this tag, not from a marketing outline.
Expect publisher tutorials, release notes, architecture write-ups, and field notes linked from DotNetNews issues. Start here is a short editorial shortlist for .NET Performance and Optimization; the archive list is chronological and larger. Secondary angles such as .NET performance optimization and C# performance appear when the archive actually covered them. Nearby reading often overlaps with .NET Benchmarking and BenchmarkDotNet and .NET Profiling and Diagnostics.
Start here
Editor picks for Performance
-
Building a Streaming, Low-Allocation Excel Writer in .NET
c-sharpcorner.com Issue #504
Covers building a Streaming, Low-Allocation Excel Writer in .NET.
-
Redis Caching Strategies for High-Traffic ASP.NET Core Applications
c-sharpcorner.com Issue #503
Straightforward and useful. Redis strategy discussions matter more when traffic patterns and invalidation costs are part of the conversation.
-
Optimizing I/O Performance in .NET
dotnettips.com Issue #498
I/O operations impact application responsiveness, scalability, and costs.
-
.NET 8 vs .NET 6: Should You Upgrade?
faciletechnolab.com Issue #495
A sensible upgrade comparison focused on support windows, performance, and migration risk rather than hype.
-
Modern C# Features: A Deep Dive into Records, Pattern Matching, Async, and Performance
medium.com Issue #494
A practical guide to the C# language features that have reshaped how we write .NET code .
-
Beyond the Spinner: Implementing High-Performance Optimistic UI with .NET and JavaScript
medium.com Issue #487
Optimistic UI is one of those topics that touches both performance and product feel. Good when done with discipline.
-
IO Performance: Reuse HttpClient to Avoid Connection Overhead
dotnettips.com Issue #485
A perennial reminder: HttpClient misuse still shows up in too many codebases.
-
10 EF Core Performance Mistakes (and How to Fix Them) in .NET 10
codewithmukesh.com Issue #479
10 EF Core performance mistakes that ship to production, N+1 queries, missing projections, lazy loading, AsNoTracking, bulk ops, and how to fix each in .NET 10.
Archive
Page 1 of 63
Newest first
-
Benchmarking .NET Worker Services Under CPU and Memory Pressure
c-sharpcorner.com Issue #529
Benchmark .NET Worker Services under CPU and memory pressure by measuring throughput, queue backlogs, garbage collection, latency, resource usage, and application stability.
-
Benchmarking Redis Serialization Formats for High-Throughput .NET APIs
c-sharpcorner.com Issue #529
Benchmark Redis serialization formats for high-throughput .NET APIs by comparing JSON, MessagePack, payload size, latency, memory allocations, throughput, and performance.
-
Benchmarking Redis Connection Multiplexing for High-Throughput .NET APIs
c-sharpcorner.com Issue #529
Benchmark Redis connection multiplexing in high-throughput .NET APIs by measuring throughput, latency, connection usage, CPU consumption, and scalability under load.
-
Rubbish Code, Clean Memory: Understanding the .NET Garbage Collector
truestorydavestorey.medium.com Issue #529
Automatic memory management is a cornerstone of what makes many modern programming languages and runtimes so appealing to many engineers…
-
Designing Controlled Concurrency in .NET with SemaphoreSlim
c-sharpcorner.com Issue #529
Learn how to use SemaphoreSlim to control asynchronous concurrency in .NET, limit concurrent order-processing operations, avoid resource pressure, and improve throughput compared with fixed-size batch...
-
My benchmark said my library was 2x faster. It was not.
baryodev.medium.com Issue #529
Mapsicle 1.3.0 is on NuGet. It fixes seven defects, two of which corrupted data silently. But the change I want to write about is the one…
-
From 17ms to 0.04ms: How to Design the Right SQL Index
milanjovanovic.tech Issue #528
What does a good SQL index look like? I seeded Postgres with 1 million comments and measured every indexing decision with EXPLAIN ANALYZE: a 17ms sequential…
-
Performance Tuning in Modern C# Applications: Stop Using Brute Force and Start Thinking in Grey…
medium.com Issue #528
Performance tuning is often approached as a race to make individual operations faster.
-
The Silent Performance Killer: Understanding the N+1 Query Problem in EF Core
c-sharpcorner.com Issue #527
Learn how to identify and fix the N+1 query problem in Entity Framework Core using Include, projection, relationship queries, and efficient LINQ patterns to improve database performance.
-
Capacity Is Not a Number: Atomic Admission and Scale-Out with Redis Lua in .NET
medium.com Issue #527
Why deterministic selection is still unsafe without distributed reservation, how Redis Lua closes the race, and how bounded runtime and…
-
Benchmarking Semantic Routing vs Failover Routing in microsoft.Extensions.AI
c-sharpcorner.com Issue #527
Benchmark semantic routing and failover routing in Microsoft.Extensions.AI to compare model selection, reliability, latency, cost, and AI workload performance.
-
Microsoft.Extensions.AI Routing: Measuring Wrong-Model Selection Costs
c-sharpcorner.com Issue #527
Learn how incorrect AI model routing affects cost, latency, response quality, and reliability using Microsoft.Extensions.AI routing capabilities and practical benchmarks.
-
Improving Performance in .NET Applications
youtube.com Issue #527
We all want to write fast code. But writing code that performs well doesn’t come for free. Developers must be cognizant of what their code will do when it is executed, and what tools to use when you w...
-
PuppeteerSharp C#: Export Chart.js Dashboards to PDF (Guide)
c-sharpcorner.com Issue #526
Learn how to generate PDF reports from JavaScript-based dashboards in .NET 10 using PuppeteerSharp and IronPDF. Compare both approaches, understand their architecture, and see how they perform when re...
-
Benchmarking .NET 11 HTTP Compression for Large JSON APIs
c-sharpcorner.com Issue #526
Benchmark .NET 11 HTTP compression for large JSON APIs by measuring response size, bandwidth savings, CPU usage, latency, throughput, and compression efficiency across realistic workloads.
-
My API Test Passed. EF Core Still Run 51 Queries.
medium.com Issue #526
I was working on an EF Core endpoint and noticed something I’d probably ignored plenty of times before.
-
What happens when you call await? A step-by-step runtime breakdown
blog.elmah.io Issue #526
This step-by-step breakdown shows what happens when C# hits an await: the compiler generates an IAsyncStateMachine struct with a MoveNext() method splitting code at each await, using a GetDataCountAsy...
-
How We Engineered ma7-MQ: Building an Ultra-Fast, Resilient Message Broker from Scratch in .NET
medium.com Issue #526
A deep dive into high-throughput asynchronous channels, Shannon entropy-based selective compression, distributed resiliency patterns, and…
-
5 Ways to Improve ASP.NET Core Web API Performance with a Real-World Example
c-sharpcorner.com Issue #525
Learn five practical ways to improve ASP.NET Core Web API performance using optimized database queries, pagination, async/await, AsNoTracking, and caching for scalable applications.
-
Benchmarking Semantic Routing vs Static Model Selection in .NET
c-sharpcorner.com Issue #525
Compare semantic AI routing with static model selection in .NET by benchmarking latency, cost, routing accuracy, complexity, and overall application performance.
-
Building DNS Failover Detection with .NET and Health Probes
c-sharpcorner.com Issue #525
Build DNS failover detection with .NET health probes to identify resolution failures, service outages, endpoint changes, and application-level recovery conditions.
-
.NET AI Community Standup: Routing & Failover for Microsoft.Extensions.AI
youtube.com Issue #525
Join Bruno and Joshua to talk about routing and failover for Microsoft.Extensions.AI. Joshua built this during his internship at Microsoft, and he'll walk us through how it works, the design decisions...
-
Rate Limiting in System Design: Algorithms, Use Cases, and .NET Implementation
medium.com Issue #525
Modern applications are expected to handle thousands or even millions of requests. But what happens when too many requests arrive at the…
-
NAudio 3
markheath.net Issue #524
I'm really pleased to announce the release of NAudio version 3 , which includes a complete modernization of the entire library, many bug-fixes and performance improvements, and adds several key new fe...
-
Testing .NET 11 DNS APIs Under Real Failover Conditions
c-sharpcorner.com Issue #523
Test the new .NET 11 DNS APIs under realistic failover conditions, measuring DNS resolution latency, caching behavior, recovery time, and service-discovery reliability.