performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1707 articles Updated Page 7 of 69
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 7 of 69
Newest first
-
Optimizing Core Web Vitals and Technical Performance in ASP.NET Core Applications
C# Corner 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# Corner 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 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 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 Issue #530
Part 3: ⚽ Sports Betting Platforms — Parallelism Under Real-Time Pressure
-
Benchmarking .NET Worker Services Under CPU and Memory Pressure
C# Corner 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# Corner 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# Corner 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
Medium 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# Corner 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.
Medium 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
Milan's .NET Weekly 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 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# Corner 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 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# Corner 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# Corner 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 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# Corner 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# Corner 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 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
elmah.io Blog - .NET Technical tutorials/guides and new features 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 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# Corner 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# Corner Issue #525
Compare semantic AI routing with static model selection in .NET by benchmarking latency, cost, routing accuracy, complexity, and overall application performance.