performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1586 articles Updated Page 2 of 64
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 2 of 64
Newest first
-
Finding the total number of processors on a machine with .NET
andrewlock.net Issue #532
In this post I show how to find the total number of logical CPUs on a host (not just those available to a process); something that isn't exposed in modern .NET
-
LAZY in C#.
medium.com Issue #532
“Lazy loading” in C# generally means delaying the creation/initialization of an object until the moment it’s actually needed, rather than… Continue reading on SilentTech »
-
Migrating from Polly to Carom
medium.com Issue #531
First, the disclosure: Carom is my library. Read everything below knowing that, and check the claims yourself. All of them are checkable. Continue reading on CodeToDeploy »
-
What If Every API Failed Today? Testing Resilience with Microsoft Dev Proxy
c-sharpcorner.com Issue #531
Learn how to use Microsoft Dev Proxy to simulate API failures, 503 errors, rate limiting, delays, and unexpected responses, helping .NET developers test application resilience before production.
-
Optimizing Core Web Vitals and Technical Performance in ASP.NET Core Applications
c-sharpcorner.com Issue #531
Learn how to optimize Core Web Vitals and technical performance in ASP.NET Core applications. This developer guide covers response compression, static asset caching, and layout shift fixes.
-
.NET 11 Generic Complex Numbers: Benchmarking Complex for Scientific Workloads
c-sharpcorner.com Issue #530
Benchmark generic complex numbers in .NET 11 using Complex across scientific workloads, measuring numerical performance, allocations, and execution time.
-
Still Using Task.Run() in ASP.NET Core? Fix C# Async Await the Right Way
medium.com Issue #530
Your ASP.NET Core API is slow, so you add Task.Run() and expect things to get better.
-
Your EF Core Query Looks Fine… Until It Runs 1,001 Queries
medium.com Issue #530
The N+1 Query Problem in EF Core — What It Is, Why It Hurts, and How to Fix It
-
Threads vs Task Parallel Library (TPL) in .NET [Part 3]
medium.com Issue #530
Part 3: ⚽ Sports Betting Platforms — Parallelism Under Real-Time Pressure
-
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.