performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1586 articles Updated Page 30 of 64
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 30 of 64
Newest first
-
Sort array elements without using built-in methods
C# Corner Issue #322
Learn how to sort array elements in C# without using built-in methods! This tutorial uses Bubble Sort with a practical ASP.NET example for hands-on learning.
-
Stop Allocating Arrays — Start Renting Them Like a Pro
Medium Issue #321
We allocate arrays like it’s free candy. Every new byte[1024] or new char[4096] feels harmless — until your profiler lights up with GC…
-
Zero-Cost foreach: How .NET 10 Turbo-charges Your Collections
Medium Issue #321
.NET 10 slashes enumeration costs in List, Stack, Queue & ConcurrentDictionary — benchmarks show up to 6× faster loops with zero… Continue reading on .Net Programming »
-
Understanding CancellationToken in .NET 9.0
C# Corner Issue #321
Learn how to use CancellationToken in .NET 9.0 to gracefully stop async tasks, prevent resource waste, and improve application stability. Includes code example!
-
Working with String, StringBuilder, and StringBuffer in C#
C# Corner Issue #321
Master C# string manipulation! Compare string, StringBuilder, & StringBuffer (simulated) in ASP.NET WebForms. Boost performance & ensure thread safety. ??
-
Optimize Azure Costs with Reserved Instances
YouTube Issue #321
• Video: Advisor Clinic: Lower costs with Azure Virtual Machine reservations https://www.youtube.com/watch?v=o5hCnWfqAzc • Video: Manage Azure AI Foundry Provisioned Throughput Reservations https://w...
-
The Developers’ Guide to Caching: Why We Cache and How It Really Works
blog.williamachuchi.com Issue #321
Caching is one of those concepts every developer has heard of yet few fully understand until they’ve been forced to scale. This article is…
-
15 Essential C# Shorthand Operators Every Developer Should Know in 2025
Medium Issue #321
Introduction
-
Why We Should Avoid Lazy Loading in EF Core
Medium Issue #320
The downside of lazy loading in EF Core
-
Handling Deadlocks in EF Core: Prevention and Recovery Strategies
Medium Issue #320
Prevent and recover from EF Core database deadlocks using retry patterns, transaction design, and smart indexing best practices.
-
LinkedIn: "Are you still using new Random() everywhere?"
Steven Giesel Issue #320
You need some advice around Random? Sure there is something on LinkedIn for that. Let's have a look.
-
DotNet: 9 Versions of .NET Performance Enhancements
Medium Issue #320
Are you stuck on a prior version of .NET? 3.5 or 4.8 or maybe .NET CORE. It’s time to think about migrating to .NET 10. Read this digest…
-
Handle Duplicate Messages With Idempotent Consumers | Idempotency in .NET
Medium Issue #320
“In distributed systems, duplicates aren’t bugs — they’re facts of life. And if your consumers aren’t idempotent, you’re one retry away…
-
Span & Memory in C#: Kill Allocations [Guide]
Medium Issue #320
Master Span and Memory in C# to kill string/array allocations. Benchmarked CSV + varint parsing with zero GC and faster throughput. Continue reading on .Net Code Chronicles »
-
Stop Designing for Traffic — Design for Failure
Medium Issue #320
Most architects obsess over traffic. “How do we handle 10,000 requests per second?” Wrong question.
-
Parallelism — When Tasks Truly Run at the Same Time
Medium Issue #320
Concurrency gives your program the illusion of doing many things at once. Parallelism is when that illusion becomes real.
-
Understanding Garbage Collection in C#: How .NET Manages Memory for You
Medium Issue #320
Memory management is one of the most critical — and complex — aspects of software engineering. In low-level languages like C or C++…
-
Learn Garbage Collection in C#
C# Corner Issue #320
Learn how Garbage Collection (GC) works in C# ASP.NET WebForms with a practical example. Prevent memory leaks and optimize your web application's performance.
-
Working with Strings and StringBuilder in C#
C# Corner Issue #320
Unlock C# string manipulation secrets! Learn when to use String vs. StringBuilder for optimal performance in ASP.NET WebForms. Boost efficiency now!
-
⚡ One Trick To Improve EF Core Performance Using Query Splitting.
Medium Issue #319
Often the simplest change — AsSplitQuery() — yields the biggest production performance improvement when you’re using multiple Include()s.”…
-
Understanding HashSet in C#: Internal Working, Advanced Concepts & Performance Insights
Medium Issue #319
If you’ve worked with collections in C#, you’ve likely used List<T>, Dictionary<TKey, TValue>, or HashSet<T> — but do you really know how…
-
ASP.NET Core Custom Middleware: Faster, Cleaner Pipelines
amarozka.dev Issue #319
Learn to build and place custom middleware for logging, localization, and multi‑tenancy to speed up ASP.NET Core apps and simplify code. Continue reading on .Net Code Chronicles »
-
Asynchronous Programming in C#: async and await
C# Corner Issue #319
Unlock ASP.NET WebForms performance with async/await! Prevent page freezes during long operations like API calls. See a practical example & real-world use cases.
-
Stop Overusing LINQ — This Pattern Is Faster
Medium Issue #319
(Because beauty has a cost in hot paths.)
-
⚙️ Mastering Exception Handling in .NET Core — Complete Guide with Examples
C# Corner Issue #319
Master .NET Core exception handling! Learn try-catch, global handlers, middleware, custom exceptions, and logging for robust & user-friendly apps.