.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1407 articles Updated Page 8 of 57
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
.NET Performance and Optimization articles
Page 8 of 57
Newest first
-
HTTP/3 and QUIC: The Next Generation of .NET Web Performance
medium.com Issue #442
Understanding why the fastest websites are moving beyond TCP and how to implement HTTP/3 in your .NET applications today
-
The Real Cost of Returning the Identity Value in EF Core
antondevtips.com Issue #442
Learn why EF Core SaveChanges becomes slow when inserting thousands of rows when returning identity values and how BulkInsert and BulkInsertOptimized from Entity Framework Extensions deliver up to 23x
-
Smart Query Splitting in Entity Framework Core: SmartSplitQueryInterceptor
blog.peakcyber.com Issue #441
One of the most common dilemmas when developing with Entity Framework Core (EF Core) is deciding whether to use Single Query or Split… Continue reading on PeakCyber Technologies »
-
Insane Performance Boost in EF Core using Entity Framework Extensions
medium.com Issue #441
ZZZ Projects’ EF Core Extensions Struggling with slow EF Core operations? Boost performance like never before. Experience up to 14× faster…
-
Difference Between readonly and const in C# with Examples?
c-sharpcorner.com Issue #440
Understand the crucial differences between `readonly` and `const` in C#. Learn when to use each keyword for optimal code clarity, performance, and maintainability in C# applications.
-
Stop Calling .ToList()
serkanozbeykurucu.medium.com Issue #439
There’s a line of code I keep finding in .NET repositories that looks harmless and costs teams real money.
-
How to Use HttpClientFactory in .NET Core to Avoid Socket Exhaustion
c-sharpcorner.com Issue #439
Learn how to use IHttpClientFactory in .NET Core to prevent socket exhaustion and improve performance. Discover named & typed clients, resilience with Polly, and best practices.
-
EF Core Query Performance — How to Write Fast and Efficient Queries
akash-shah.medium.com Issue #437
Learn projection, AsNoTracking, indexing, and optimization techniques to build high-performance EF Core APIs.
-
I Built a .NET Library for ACH Files — and Made It Much Faster Than the Popular Alternative
medium.com 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.com 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-sharpcorner.com 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.com 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.com Issue #435
1. Real-World Problem Scenario
-
How to Use Multithreading in C# to Run Tasks in Parallel?
c-sharpcorner.com 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.com 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.com 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
serkanozbeykurucu.medium.com 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-sharpcorner.com 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-sharpcorner.com 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.com 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.com 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
serkanozbeykurucu.medium.com 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-sharpcorner.com 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)
blog.elmah.io 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...