performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1396 articles Updated Page 28 of 56
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 28 of 56
Newest first
-
Readonly vs Const in C#: The Hidden Performance Trap Nobody Warned You About
medium.com Issue #296
Discover how a small keyword choice can silently slow down your .NET code — and the smarter way to use them for cleaner, faster…
-
Go vs. C#: Which Language Uses Memory More Efficiently?
medium.com Issue #296
Go and C# developers both like to claim that their language is more memory efficient. But which one really has the edge?
-
C# Channels Demystified: Stop Fighting Threads and Start Writing Cleaner Code
blog.stackademic.com Issue #295
Part 1 in a beginner-friendly guide to thread-safe async messaging in .NET Continue reading on Stackademic »
-
Compress HttpClient requests with GZIP
josef.codes Issue #295
By streaming the gzip compression instead of using MemoryStream, we can significantly reduce memory allocation and avoid OutOfMemoryExceptions with large payloads.
-
Exploring Bulk Operations in EF Core
codingsonata.medium.com Issue #295
Working with databases is at the heart of most .NET apps, and Entity Framework Core makes it easy to query and persist data. But when you…
-
Your .NET Protobuf Collections Might Be Slowing You Down (and Burning Cash)
medium.com Issue #295
How hidden inefficiencies in Protobuf parsing can crush performance and inflate your cloud bill.
-
Expression Trees in C#: Building Dynamic LINQ Queries at Runtime
blog.elmah.io Issue #295
Tired of endless if-else blocks just to build queries? What if your LINQ queries could write themselves at runtime? Today, we will unfold expression trees, which can be used to create dynamic queries ...
-
Shrinking the Whale: Optimizing .NET Docker Images for AWS ECS
medium.com Issue #295
If you’ve ever containerized a .NET app and deployed it on AWS ECS, you’ve probably faced this problem:
-
5 Traps That Break .NET Background Services in Production (and How to Fix Them)
medium.com Issue #295
Five production traps with .NET BackgroundServices — and the patterns that kept them from silently killing our system.
-
Lazy Loading vs Eager Loading in EF Core: Which One Should You Use?
medium.com Issue #295
When to prefer Lazy Loading in EF Core for small datasets, and when Eager Loading works best for APIs and dashboards.
-
Indexers in C#: Performance comparison & internals
medium.com Issue #294
Hello. In this article let’s take a look at indexers in different popular types. We’ll examine assembly language code for these indexers…
-
global:: in C# — Shielding against collisions and modern best practices
medium.com Issue #294
How to use global:: to avoid namespace conflicts, improve code generation, and keep your .NET 8/9 codebase consistent.
-
Leverage string interpolation in C#
medium.com Issue #294
Introduced with C# 6 in 2015, string interpolation got a complete overhaul with C# 10. Instead of being a fancy wrapper around…
-
How to Optimize SQL Queries for Faster Execution in Large Databases
c-sharpcorner.com Issue #294
This article reveals practical techniques like indexing, efficient joins, and smart WHERE clauses to dramatically reduce execution time. Learn how to analyze execution plans, leverage partitioning and...
-
5 Traps That Break .NET Background Services in Production (and How We Fixed Them)
medium.com Issue #293
Five production traps with .NET BackgroundServices — and the patterns that kept them from silently killing our system.
-
Cloud Cost Leaks in .NET Microservices — and How to Plug Them
blog.yaseerarafat.com Issue #293
Discover hidden cloud costs in .NET microservices, optimize Azure and AWS spend, and implement FinOps best practices to save thousands…
-
7 C# Features You’re Underutilizing
medium.com Issue #293
Are you writing C# like it’s still 2010? The language has evolved a lot, and if you’re not using some of its more modern features, you’re… Continue reading on Works On My Machine »
-
The Complete Guide to C# Performance Optimization: Doing More with Less
levelup.gitconnected.com Issue #293
Here’s a practical, no-fluff guide you can hand to senior .NET teams. Think of it as the briefing I’d give an internal product group at… Continue reading on Level Up Coding »
-
sleep-pc: a .NET Native AOT tool to make Windows sleep after a timeout
andrewlock.net Issue #293
In this post I describe a small native AOT .NET tool that I built to force a Windows PC to go to sleep after a timer expires
-
One Line, 40% Faster: The EF Core Fix Every .NET Developer Should Know
medium.com Issue #292
See how a simple code adjustment led to a huge performance jump — without rewriting queries or upgrading infrastructure.
-
How I Fixed a .NET Dashboard That Got 300% Slower Overnight
itnext.io Issue #292
Query Store helped me trace regressions, plan changes, and missing indexes — no APM or guesswork required. Continue reading on ITNEXT »
-
Life of a VS Code SWE Intern with Christy Nguyen | VS Code Insiders Podcast ep. 5
youtube.com Issue #291
The Hidden Performance Killer: How Sync-Over-Async Deadlocks Are Destroying Your ASP.NET
-
Mistakes Senior C# Developers Make — Hard-Won Lessons
medium.com Issue #291
Senior C# Slip-Ups: Hard-Won Lessons From Ten Years in .NET — Avoid deadlocks, N+1 traps, and memory leaks with Monday-ready refactors. Continue reading on Inside the IF »
-
Top 5 Free Tools Every .NET Developer Should Know by 2025
medium.com Issue #291
The .NET ecosystem continues to evolve rapidly in 2025, and developers will have access to more free tools than ever before. Whether…
-
5 Stream Hacks in .NET You’re Still Doing Wrong
blog.stackademic.com Issue #290
Forget clunky buffer loops; these modern APIs make your I/O code fly. Continue reading on Stackademic »