performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1396 articles Updated Page 8 of 56
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 8 of 56
Newest first
-
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...
-
C# Records Explained Like a Pro
medium.com Issue #431
(With Real-World Use Cases & Performance Insights)
-
How to Implement a Binary Search Algorithm in C# With Example
c-sharpcorner.com 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.com 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.com 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.com 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-sharpcorner.com 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-sharpcorner.com 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.com 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.
-
How to Use Generics in C# to Write Reusable and Type-Safe Code
c-sharpcorner.com Issue #427
Master C# generics! Learn how to write reusable, type-safe code, avoid duplication, and boost performance. Explore generic classes, methods, collections, and constraints.
-
Most C# devs have been burned by deferred execution at least once.
medium.com Issue #427
Usually at 2am. Usually in production.
-
I Added Resilience to My .NET App. It Started Sending Duplicate Orders.
medium.com Issue #426
A production war story that every .NET developer needs to read — from junior to architect.