performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1624 articles Updated Page 10 of 65
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 10 of 65
Newest first
-
Fastest Way to Bulk Insert Thousands of Rows in EF Core
codewithmukesh Issue #502
Benchmark the fastest way to bulk insert thousands of rows in EF Core 10 - AddRange vs EFCore.BulkExtensions vs SqlBulkCopy and Npgsql COPY, with real numbers.
-
Building a Cost-Effective Async Export Pipeline in ASP.NET
Medium Issue #502
How to stop your API from freezing on large exports — using nothing but System.Threading.Channels, IHostedService, and Redis.
-
Your Try-Catch Blocks Are Lying to You
Medium Issue #502
Exceptions aren’t free, and neither is treating every failure like one. Here’s how I split the two, and where I draw the line.
-
Entity Framework Core Performance Tuning for Large Applications
C# Corner Issue #501
Optimize EF Core for large apps: Boost performance with AsNoTracking, pagination, indexing, caching, and more.
-
Implementing AI Cost Optimization and Token Management Strategies in .NET Applications
C# Corner Issue #501
Master AI cost optimization in .NET. Learn token management, prompt engineering, caching, and model selection for sustainable AI.
-
.NET 11 Preview 8: New Features and Breaking Changes Explained
C# Corner Issue #501
.NET 11 Preview 8: Explore new features like runtime performance, Native AOT, and JSON serialization. Prepare for breaking changes.
-
The self-invalidating cache that lives in the pipeline, not your handlers
Medium Issue #501
A read-through cache is easy. Keeping it correct is the hard part. Here is a cache where a write invalidates the reads it staled…
-
Concat Costs
Medium Issue #501
String concatenation with + is fine for one line, but in loops or dynamic UI it forces the garbage collector to work overtime…
-
Memory discipline and GC awareness in .NET
C# Digest Issue #500
avoid frequent collection cycles causing latency spikes and wasted CPU time
-
Streaming Excel Exports in ASP.NET Core with IAsyncEnumerable
C# Corner Issue #500
Stream Excel exports in ASP.NET Core using IAsyncEnumerable to avoid memory issues. Process large datasets efficiently without loading them entirely into memory.
-
Optimizing I/O Performance in .NET
dotNetTips.com Issue #498
I/O operations impact application responsiveness, scalability, and costs. Enhancing file access, HTTP requests, and networking improves user experience while reducing resource consumption. This chapte...
-
The Fasting Developer: Memory Discipline and GC Awareness in .NET
Bipin Joshi .NET | Thus said a Byte • Insights on .NET and Web Development Issue #498
There is a quiet assumption baked into most .NET codebases: the Garbage Collector will always clean up. And technically, it will. But the cost of that cleanup — paid in latency, in CPU time, in unpred...
-
Stop Over-Fetching: Master EF Core Projections for Faster, Leaner APIs
Medium Issue #498
Modern APIs rarely need every column from every related table.
-
IQueryable vs IEnumerable: The Mistake That Loads Your Whole Table
Medium Issue #497
You wrote a clean LINQ query. It filters down to ten rows. It runs fine in dev, and then in production it’s slow and your database CPU is…
-
Bypassing the .NET GC: How I Hit 2.3 Million OPS With a C#-Native Embedded Database
Medium Issue #496
DataVo v0.1 Alpha: an open-source, zero-allocation SQL + vector engine that runs in-process, no native extensions required.
-
.NET 8 vs .NET 6: Should You Upgrade?
Facile Technolab Blog Issue #495
.NET 8 vs .NET 6 compared. Support timelines, performance gains, and breaking changes. A practical guide to deciding when and how to upgrade.
-
gRPC vs REST APIs: Performance, Scalability, and Use Cases Compared
C# Corner Issue #495
Compare gRPC vs REST APIs: explore performance, scalability, use cases, architectural differences, data formats, and when to choose each.
-
Need a different partition key in Azure Cosmos DB? Pick the right approach
Microsoft Dev Blogs Issue #495
Once you create a container, its partition key is fixed at creation, and you can’t change it in place. However, if your original key starts causing problems like cr
-
How to Write the Fastest Code with BenchmarkDotNet in C# in the AI Era
Medium Issue #495
In the AI era, just as tests are essential as the legs that let an AI agent run its loop, profilers matter too, because they supply the…
-
Heap vs Stack in C#: The Biggest Misconception Every Beginner Learns
Medium Issue #494
If you’ve been learning C#, you’ve probably heard this:
-
Modern C# Features: A Deep Dive into Records, Pattern Matching, Async, and Performance
Medium Issue #494
A practical guide to the C# language features that have reshaped how we write .NET code — records, pattern matching, async/await…
-
Async/Await Pitfalls in C#: The Bugs That Compile Fine and Break in Production
C# Corner Issue #494
Master C# async/await: Avoid hidden bugs like async void, deadlocks, and forgotten awaits that compile but break in production.
-
Optimizing Entity Framework Core Queries for Large-Scale Applications
C# Corner Issue #493
Optimize EF Core queries for large-scale apps. Learn techniques like projection, AsNoTracking, pagination, and indexing for peak performance.
-
AI-Driven Performance Profiling for ASP.NET Core Applications
C# Corner Issue #493
Unlock faster ASP.NET Core apps with AI-driven profiling. Automate bottleneck detection, get smart recommendations, and boost performance.
-
Building AI-Powered Database Query Optimization Tools with SQL Server and .NET
C# Corner Issue #493
Build AI-powered SQL Server query optimization tools with .NET. Automate performance analysis, detect bottlenecks, and get intelligent recommendations.