performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1707 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# Corner Issue #504
Covers building a Streaming, Low-Allocation Excel Writer in .NET.
-
Redis Caching Strategies for High-Traffic ASP.NET Core Applications
C# Corner 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?
Facile Technolab Blog 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 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 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 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 69
Newest first
-
Hardening a two-level cache in .NET: the edge cases my tests missed
Medium Issue #589
The happy path took a week. The edge cases took the rest.
-
EF 11 Drops a Redundant Join From Split Queries
Milan's .NET Weekly Issue #589
EF 11 stops joining reference navigations in the collection statements of a split query, and it drops their keys from ORDER BY.
-
Choosing Between Include and Select in EF Core for Better API Performance
C# Corner Issue #589
Learn when to use Include and Select in EF Core, how eager loading differs from projection, and how each approach affects API query performance and response payloads.
-
Self-service reporting without hurting your production database: replicas, views, indexes and…
Medium Issue #588
By Razi Syed. Sample code: github.com/dotnetreport/dotnetreport
-
The Hidden Risks of Sharing DbContext Across Threads in .NET
Medium Issue #587
Why sharing one Entity Framework Core DbContext across concurrent operations can cause unexpected exceptions and how to fix it
-
Understanding Slow API Requests and HTTP Connection Pooling in .NET
C# Corner Issue #587
Learn how HttpClient connection pooling affects outbound API performance in .NET and how to avoid socket exhaustion, unnecessary connections, and stale DNS resolution.
-
IAsyncEnumerable
in C#: Processing Millions of Records Without Loading Everything Into Memory Medium Issue #587
Imagine your database contains 5 million records, and your API needs to process all of them.
-
Updating Thousands of Database Records in EF Core Without Loading Them Into Memory
C# Corner Issue #587
Learn how to update large numbers of records efficiently in EF Core using ExecuteUpdateAsync, direct database updates, and batching strategies.
-
Beyond async/await : High-Performance Architectural Patterns for Modern .NET Systems
Medium Issue #587
How cooperative multitasking, heap allocations, and ThreadPool starvation drive modern systems toward specialised asynchronous primitives…
-
A queue is a shock absorber, not a pump
C# Digest Issue #586
queues absorb traffic spikes by storing excess work temporarily but they can't speed up the work
-
Foreground Thread vs Background Thread in C# — Understanding Thread Execution and Application…
Medium Issue #586
In C# and .NET, Foreground Threads and Background Threads are two types of threads that determine whether an application should continue…
-
Task vs ValueTask vs Thread: How They Work with Stack and Heap in C#
Medium Issue #586
To understand Thread, Task, and ValueTask deeply, we first need to understand how .NET manages memory using Stack and Heap.
-
FrozenDictionary and FrozenSet: When Read-Heavy Lookups Deserve a Different Collection
Medium Issue #586
They aren’t replacements for Dictionary and HashSet. They’re optimized for a different lifecycle: build once, read repeatedly.Continue reading on C# Snaps: Sharp Bites for Better Code »
-
Uploading Large Files in ASP.NET Core Without Running Out of Memory
C# Corner Issue #586
Learn how to upload large files in ASP.NET Core using streaming, avoid MemoryStream pressure, configure request limits, and handle multipart uploads efficiently.
-
Handling Background Job Failures Without Stopping .NET BackgroundService
C# Corner Issue #585
Learn how to prevent individual job failures from stopping a .NET BackgroundService by isolating exceptions, handling cancellation, retrying transient errors, and monitoring workers.
-
Sync vs Async File I/O in .NET: Raw Throughput, Scalability, and Buffer Size
Meziantou's blog Issue #584
This is a bonus post to the series about async/await in C#. The series explains how async works, from the problem it solves up to the .NET 11 runtime taking over await. This post applies all of it to ...
-
Migrating to runtime async
Meziantou's blog Issue #583
This is the last post of the series proper, with one bonus post to follow. The previous two posts showed what runtime async does to the IL and to the numbers. This one is about the code you already ha...
-
Understanding Lazy
thread safety modes Andrew Lock | .NET Escapades Issue #582
In this post I look at how the different `LazyThreadSafetyMode` values work with `Lazy`, and how exceptions are handled for each mode
-
Finding the Cause of Slow Startup in Large .NET Applications
C# Corner Issue #581
Learn how to diagnose and reduce slow ASP.NET Core startup by measuring initialization work, reviewing dependency injection, and handling database and hosted-service delays.
-
Stale Local Caches Behind a Load Balancer: A FusionCache Case Study
Medium Issue #580
How per-instance caches caused players to receive the wrong items, and how a two-level cache with a backplane resolves the problem.
-
All Types of Caching in .NET: When to Use Each (Deep Dive, Part 2)
Medium Issue #580
In .NET, you have 6 ways to cache: IMemoryCache, IDistributedCache, Redis, HybridCache, FusionCache, and Output Cache.Continue reading on CodeX »
-
-
Count, Prefix Sum, Fill: Unity’s C# Job System Explained Simply
Medium Issue #579
Intro: my game froze, so I learned the Job System
-
How to Loop Through a List in C#: Every Way, Benchmarked
Khalid Abuhakmeh Issue #579
How to loop through and iterate a List
in C# with foreach, for, ForEach, Index(), and spans, plus break, continue, safe removal, and benchmarks. -
How to Test Application Recovery After a Cloud Service Becomes Unavailable
C# Corner Issue #579
Learn how to identify slow MSBuild targets using reproducible builds, diagnostic logging, timing summaries, and clean versus incremental build comparisons.