performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1624 articles Updated Page 4 of 65
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 4 of 65
Newest first
-
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.
-
Building DNS Failover Detection with .NET and Health Probes
C# Corner 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 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 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
Sound Code - Mark Heath's Blog 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# Corner 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.
-
EF Core 11 Query Translation Changes Under Real Workloads
C# Corner Issue #523
Evaluate EF Core 11 query translation changes with real workloads. Learn to benchmark, inspect SQL, and analyze execution plans for optimal performance.
-
Benchmarking HTTP Compression Algorithms for ASP.NET Core APIs
C# Corner Issue #523
Compare HTTP compression algorithms in ASP.NET Core APIs using real-world benchmarks for response size, CPU consumption, latency, throughput, and network efficiency.
-
.NET 11 Runtime Async Performance: What Actually Changes
C# Corner Issue #523
.NET 11's Runtime Async revolutionizes async programming with runtime-managed suspension, boosting performance and debugging.