What’s new in .NET Core 3.x and .NET 5 for performance?
summary
Nullable reference types improve safety but do not change JIT-generated null checks; GC and runtime work bring measurable wins: large page support (used by Bing) cuts latency by about 20% on large-memory workloads; GC adds a GC.AllocateUninitializedArray API and a pinned object heap so buffers can be allocated unzeroed and pinned (no object movement), LOH threshold becomes configurable, containers gain GC hard memory limits and automatic LOH compaction, diagnostics/tools (dotnet-counters, dotnet-dump, trace) and JIT work (escape analysis, tiered JIT, on-stack replacement planned) enable real profiling and lower allocations.
AI-written summary · about
chapters (29)
- 0:00Intro
- 1:23Agenda
- 1:48NoHope
- 7:16Large Pages
- 10:47Large Page
- 12:49Bing
- 13:34Provisional Mode
- 16:44Large Objective Threshold
- 19:32Create Uninitialized Array
- 23:30Pint Array Pool
- 27:03String Builder
- 28:04Memory Management
- 33:46Diagnostics
- 37:58DC Dump
- 38:37CSharp
- 39:15Profiling
- 39:59GetGCInfo
- 42:49Fine Tunings
- 43:22App Domains
- 45:18Cooperative Approach
- 46:09Quickjet
- 47:21OnStack Replacement
- 49:29Optimized Version
- 50:37On Stack Replacement
- 51:54Escape Analysis
- 53:10Simplified Escape Analysis
- 53:57Static Methods
- 56:23Suppressed GC Transition
- 58:49StringBuilder API
