From 01950d3e9bfd101af0d3b32f03f11249d5c05185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Sedl=C3=A1k?= Date: Thu, 29 Oct 2026 08:49:57 +0100 Subject: [PATCH] Use server GC and turn off dynamic PGO in released binaries A build is a short, CPU bound, allocation heavy run. On a 2650 source project (18 cores) cold build went from ~27 s to ~22 s, build with source cache from ~20 s to ~17 s, for ~170 MB more memory. Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 7 +++++++ bb/bb.csproj | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4b06c89..c657a5fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ ## [unreleased] +### Changed + +- Faster builds: released binaries now use the server garbage collector and have dynamic PGO (`TieredPGO`) turned off. + A build without build cache of a ~2650 source project went from ~27 s to ~22 s and one with build cache from ~20 s to + ~17 s, at the cost of ~170 MB more memory and ~30-100 ms slower start. `DOTNET_gcServer=0` and `DOTNET_TieredPGO=1` + restore the previous behavior. + ## 7.1.0 ### Changed diff --git a/bb/bb.csproj b/bb/bb.csproj index 514602a7..f68299ec 100644 --- a/bb/bb.csproj +++ b/bb/bb.csproj @@ -11,7 +11,13 @@ true true + + false + + +