performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1668 articles Updated Page 5 of 67
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 5 of 67
Newest first
-
ASP.NET Core 11 Static SSR: Measuring Performance and HTML Payload Size
C# Corner Issue #534
Benchmark ASP.NET Core 11 Static SSR to measure server performance, time to first byte, HTML payload size, and resource usage in web applications.
-
Your ASP.NET Core Endpoints Don't Have a Timeout
Milan's .NET Weekly Issue #534
ASP.NET Core doesn't enforce an application timeout on incoming requests by default. The built-in middleware can add one, but it only cancels RequestAborted.
-
What Actually Happens When You Use async and await in .NET?
Medium Issue #533
If you work with .NET, you have probably written code like this:
-
.NET MAUI CoreCLR Migration: Benchmarking Startup and Memory on Android
C# Corner Issue #533
Learn how the .NET MAUI CoreCLR migration affects Android applications by benchmarking startup time, memory usage, runtime performance, and application behavior.
-
.NET 11 ZIP Password Support: Benchmarking Encrypted Archive Performance
C# Corner Issue #533
Benchmark encrypted ZIP archive performance in .NET 11 by measuring CPU usage, memory consumption, processing time, archive size, and throughput.
-
How to Set Excel Cell Background in C# (Solid, Texture, and Gradient)
Medium Issue #533
Are you looking to make your Excel reports more visually appealing and easier to interpret? Whether you need to highlight critical KPIs…
-
.NET 11 HTTP Connection Eviction: Testing DNS Failover in Long-Lived APIs
C# Corner Issue #532
Test .NET 11 HTTP connection eviction for long-lived APIs and evaluate DNS failover, connection reuse, backend changes, and request reliability.
-
Finding the total number of processors on a machine with .NET
Andrew Lock | .NET Escapades 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 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 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# Corner 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# 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.