Library topic

Performance

Runtime performance, Native AOT and trimming. 40 links, all featured in The .NET Insider.

Read a live call stack with .NET 11 Runtime Async

Ali Hamza Ansari · blog.elmah.ioIssue 37

Compares the live call stacks of two small console projects: with Runtime Async enabled, the compiler-generated builder frames disappear and application methods are easier to follow. The .NET 11 runtime libraries already use it, while opting your own code in is still a preview. Throughput gains for an ASP.NET Core endpoint are something to measure on your own workload.

Four .NET 11 experiments to take back to your team

Emanuele Bartolesi · dev.toIssue 37

Turns .NET Conf demos into questions you can test on a familiar project, such as how many bytes a warmed-up async cache hit allocates and how long a rebuild takes after a one-line edit. Other examples cover C# 15 unions and Blazor validation. The single-file rebuild is the easiest place to start, since it needs very little work to establish a baseline.

Find a slow request with Aspire telemetry and an AI agent

Builds an orders API with PostgreSQL and a load generator, then gives an agent access to Aspire's telemetry to investigate latency. The MCP response can omit the large trace the investigation needs, but the Aspire CLI exposes enough to find it and inspect its spans. Comparing a slow request with a fast one gives the agent evidence before it reaches for the source code.

NetWasm 0.10 improves its C# compiler for WebAssembly

Edin Kapić · infoq.comIssue 36

InfoQ covers NetWasm 0.10 and the compiler work behind its reported gains, including exception handling, bounds checks, SIMD and division optimizations. The project reports beating Mono AOT in its benchmark set; those results depend on a particular runtime, hardware and workload, so treat them as a starting point for evaluation.

Inside DuckDB.NET's faster date appends

Giorgi Dalakishvili · giorgi.devIssue 34

Explains the changes behind DuckDB.NET 1.5.6.1's faster handling of dates, nullable values, enums and strings, with both compared versions on the same DuckDB engine. In one million-row timestamp benchmark, allocations fall from 2.8 GB to 93 KB. The sections on boxing, generic virtual calls and date conversion are worth reading even if DuckDB is not in your stack; the figures belong to the measured workloads.

Parse a heavily reused format string once

Sukhpinder Singh · dev.toIssue 34

Moves the parsing of a repeated string.Format template into a reusable CompositeFormat and compares formatting time and allocations over five million calls. Useful when a template comes from a variable or resource and sits on a measured hot path; an occasional formatting call is unlikely to justify the setup.

A faster, lighter C# Dev Kit

Drew Noakes · .NET BlogIssue 30

Version 11.0 rebuilds the extension as one Native AOT process with cached project loading. In Microsoft's benchmark on the 407-project Aspire repo, full solution load drops from 84 s to 3 s and memory from about 2 GB to 316 MB; it's in pre-release for now.

Performance Improvements in .NET 11

Stephen Toub · .NET BlogIssue 29

The annual deep dive, with benchmarks and code for each change. Sections cover the JIT (including Runtime Async, bounds checks and vectorization), startup, threading, numerics, strings and spans, collections and LINQ, I/O, networking, JSON, diagnostics and cryptography. It is very long, so use the table of contents to jump to the areas your code depends on.

Links go to the original articles. Short descriptions are dotnetdevs.io commentary, not the authors' words.