performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1586 articles Updated Page 35 of 64
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 35 of 64
Newest first
-
How to Implement an LRU Cache with O(1) Operations
C# Corner Issue #299
Learn how to implement an LRU (Least Recently Used) cache with O(1) time complexity for get and put operations. This guide provides a clear explanation of the theory, data structures (HashMap and Doub...
-
How to Delete a Particular Item from an Array
C# Corner Issue #299
Learn the safest and most efficient ways to delete items from Python arrays, avoiding costly errors. This guide uses a real-world insurance claims scenario to illustrate the dangers of improper deleti...
-
Master Zero-Allocation Programming: The Ultimate Guide to Span and Memory in C# — To Read
Medium Issue #299
Unlock the secrets of high-performance, zero-allocation programming in .NET and revolutionize your application’s memory efficiency
-
Optimizing Entity Framework Core: Performance Tips Every Developer Should Know
Medium Issue #299
Practical EF Core performance checklist: Key techniques every .NET
-
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 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
elmah.io Blog - .NET Technical tutorials/guides and new features 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# Corner 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
Medium 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 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# Corner 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 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 Issue #296
Check out these free resources: ⬇️ Continue reading on AI Career Quest »
-
Pushing .NET Performance: Practical Low-Level Programming Techniques in C#
C# Corner 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 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 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 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 Ottosson 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
Medium 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 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
elmah.io Blog - .NET Technical tutorials/guides and new features 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 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 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 Issue #295
When to prefer Lazy Loading in EF Core for small datasets, and when Eager Loading works best for APIs and dashboards.