Optimizing for the Cloud – Lightning-speed .NET Container Apps
summary
Shows how to cut cold starts and image size using concrete tools and numbers: enabling Profile Guided Optimization (PGO) (dynamic/tier-PGO flag) reduces first-request and hot-path latency, Crossgen2 + ready-to-run lowers JIT work, trimming drops a self-contained exe from ~66 MB to ~11 MB, and Native AOT can produce ~9 MB binaries with near-instant startup. Covers demoed build steps, how traces create MIBC profiles, reflection and trimming pitfalls, required native toolchains, and which .NET versions support each feature.
AI-written summary · about
chapters (15)
- 0:00Introduction and welcome
- 1:58Optimizing .NET in the cloud
- 3:06Container size and resource efficiency
- 5:52Throughput optimization fundamentals
- 7:59Garbage collection and threading
- 9:46ReadyToRun compilation
- 11:54Profile-guided optimization
- 15:31Demo: Dynamic PGO in action
- 22:21Trimming for smaller apps
- 26:20Preparing libraries for trimming
- 27:05Demo: Trimming a plugin app
- 31:25Native AOT compilation
- 34:16Demo: AOT with minimal APIs
- 39:48AOT for native libraries
- 43:06Key takeaways and Q&A
