performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1624 articles Updated Page 17 of 65
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 17 of 65
Newest first
-
I Built a .NET Library for ACH Files — and Made It Much Faster Than the Popular Alternative
Medium Issue #437
How `ReadOnlySpan<T>`, a `ref struct`, and some simple design decisions made parsing ACH files dramatically faster
-
Resilience in .NET — Polly v8 Retry, Circuit Breaker, and Timeout Patterns
Medium Issue #437
Polly v8 rewrote the entire API and most tutorials are now outdated. Here is the complete production guide to the new ResiliencePipeline —…
-
Difference Between yield return and return in C# with Examples?
C# Corner Issue #437
Unlock the power of C#! Discover the difference between `return` and `yield return` for efficient data handling. Learn when to use each for optimized memory and performance in your applications. Maste...
-
String Performance: Why Some String Searches Are Slower Than You Think
dotNetTips.com Issue #437
String searching is fundamental to modern applications, yet its performance impact is often overlooked. This article explores how common string search patterns can quietly slow down your code—and how ...
-
Why Most Developers Misunderstand IEnumerable vs IQueryable (And Pay for It in Production)
Medium Issue #435
You write a clean LINQ query, test it locally, and everything looks fine. Then it hits production.
-
High-Performance .NET APIs: Zero-Allocation Serialization Explained
Medium Issue #435
1. Real-World Problem Scenario
-
How to Use Multithreading in C# to Run Tasks in Parallel?
C# Corner Issue #434
Unlock the power of parallel processing in C# with multithreading! Learn how to use Tasks, async/await, and the Parallel class to boost performance and responsiveness. Master multithreading!
-
Build Your Own CQRS Dispatcher in .NET 10 (No MediatR)
codewithmukesh Issue #434
MediatR went commercial. Build your own CQRS dispatcher in .NET 10 with pipeline behaviors, AOT support, and a FrozenDictionary core that benchmarks 4x faster than MediatR.
-
Optimizing EF-Core Performance in Production: Lessons from the Real World
Medium Issue #434
Entity Framework Core (EF Core) is powerful, productive, and widely used — but in production systems, it can easily become a performance…
-
If You Call .ToList() Before .Where(), You Have a Performance Issue
Medium Issue #433
You’re loading thousands of rows from the database. You’re filtering in memory. Your API response takes 3 seconds. You blame Entity…
-
Difference Between String and StringBuilder in C# and When to Use Each?
C# Corner Issue #432
Unlock C# text manipulation mastery! Learn the String vs. StringBuilder difference for optimal performance. Discover when to use each for efficient code and scalability.
-
Using Redis with .NET -8,9,10: A Step-by-Step Guide
C# Corner Issue #432
Learn how to integrate Redis, the blazing-fast in-memory data store, with your .NET 8, 9, or 10 applications using StackExchange.Redis for caching and more!
-
LINQ Performance Pitfalls Every C# Developer Should Know
Medium Issue #432
Two subtle choices — IEnumerable vs IQueryable, and Func vs Expression — can mean the difference between a fast query and a silent…
-
Beyond /health: Building Self‑Monitoring .NET Services
Medium Issue #431
Turning health checks into a continuous runtime signal
-
Your EF Core Queries Are Lying to You: The N+1 Problem You’re Probably Shipping Right Now
Medium Issue #431
You wrote clean code. Your unit tests pass. The feature works in development. Then it hits production with 10,000 users, and suddenly the…
-
How to Optimize Memory Usage with C# Garbage Collection
C# Corner Issue #431
Unlock C# garbage collection! Learn how it works, optimize memory usage, and boost performance in ASP.NET Core apps. Essential for scalable .NET development.
-
How .NET handles exceptions internally (and why they're expensive)
elmah.io Blog - .NET Technical tutorials/guides and new features Issue #431
What really happens when you write throw new Exception() in .NET? Microsoft guidelines state that When a member throws an exception, its performance can be orders of magnitude slower. It's not just a...
-
C# Records Explained Like a Pro
Medium Issue #431
(With Real-World Use Cases & Performance Insights)
-
How to Implement a Binary Search Algorithm in C# With Example
C# Corner Issue #429
Master Binary Search in C#! This guide covers iterative & recursive implementations with clear examples, optimization tips, and real-world applications. Boost your search efficiency!
-
Stop Charging by the Hour: How I Used .NET to Increase My Freelance Income by 2x
Medium Issue #429
Why clients don’t care about your time — and how solving performance problems can instantly boost your rate
-
C# Mistakes That Are Silently Slowing Down Your Code
Medium Issue #429
Most C# developers don’t realize a thing. Your code might be working perfectly but still performing badly. No errors. No crashes. Just…
-
Your .NET BackgroundService Starts Too Early
Medium Issue #429
Why ExecuteAsync runs before your app is ready — and how to fix it properly.
-
What is the Difference Between Task and Thread in C#?
C# Corner Issue #429
Unlock C# concurrency! Master the difference between Tasks and Threads with our easy-to-understand guide. Boost performance & write scalable .NET apps.
-
High-Velocity Connection Pooling with Dapper and ASP.NET Core
C# Corner Issue #428
Optimize Dapper connection pooling in ASP.NET Core for high-traffic APIs! Prevent connection exhaustion with factories, proper disposal, and async calls. Boost performance and resilience!
-
Tracking vs. No-Tracking Queries in EF Core 10 - When to Use Each
codewithmukesh Issue #428
Tracking vs. no-tracking queries in EF Core 10 - benchmarks, memory analysis, AsNoTrackingWithIdentityResolution, and when to use each in ASP.NET Core Web APIs.