.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1407 articles Updated Page 28 of 57
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
.NET Performance and Optimization articles
Page 28 of 57
Newest first
-
5 .NET Concurrency Patterns That Actually Scale in Production
levelup.gitconnected.com Issue #299
Most .NET apps don’t fail from CPU limits, they fail from bad concurrency. Here are 5 patterns that actually scale in production. Continue reading on Level Up Coding »
-
Encapsulation in C#: Keeping Data Safe and Code Clean
medium.com Issue #299
When I started learning C#, one thing confused me a lot: why not just make everything public? I mean, if I can access variables directly…
-
Hidden Costs of Boxing in C#: How to Detect and Avoid Them
blog.elmah.io Issue #298
C# Boxing and Unboxing are vital players in the performance of an application. However, they are often overlooked. They involve heap allocations that bring a penalty due to their accessing mechanism. ...
-
🔍 How to Find the Largest Element in an Array?
c-sharpcorner.com Issue #298
This beginner-friendly article breaks down the problem with clear code examples and explains the O(n) time complexity. Master array traversal, comparisons, and loops while building a strong foundation...
-
Cache Stampedes in .NET
nemanjakukulicic.medium.com Issue #298
Ever had your cache hit by thousands of requests at the same time, only to watch multiple cache misses trigger identical database calls
-
Supercharging LINQ in C#: A Practical Guide to Cysharp ZLINQ
medium.com Issue #297
How to replace standard LINQ with Cysharp ZLinq for faster, zero-allocation queries in C#, with examples, limitations, and best practices. Continue reading on .Net Programming »
-
News: Visual Studio 2026
c-sharpcorner.com Issue #297
Get a sneak peek at Visual Studio 2026! The Insiders Edition boasts blazing-fast performance, deep AI integration with GitHub Copilot (adaptive paste, context menu actions, and intelligent search), a ...
-
Lazy Initialization in C#: Improve Performance with Lazy
medium.com Issue #297
A practical guide to lazy initialization in .NET: boost startup speed and resource efficiency with Lazy<T>.
-
Improve your .NET knowledge right now!
medium.com Issue #296
Check out these free resources: ⬇️ Continue reading on AI Career Quest »
-
Pushing .NET Performance: Practical Low-Level Programming Techniques in C#
c-sharpcorner.com Issue #296
Unlock peak .NET performance with low-level C# techniques! Dive into unsafe code, spans, stackalloc, and P/Invoke to minimize allocations, control memory, and optimize critical paths. Learn when and h...
-
Distributed Caching In .NET 9 With Redis
medium.com Issue #296
If you want the full source code, join our community: Here
-
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...