Skip to content

Document memory overhead and working set impact of single-file compression (Fixes #50800) - #56658

Open
Manish-1kumar wants to merge 1 commit into
dotnet:mainfrom
Manish-1kumar:users/manish/issue-50800-single-file-compression-memory-overhead
Open

Manish-1kumar wants to merge 1 commit into
dotnet:mainfrom
Manish-1kumar:users/manish/issue-50800-single-file-compression-memory-overhead

Conversation

@Manish-1kumar

@Manish-1kumar Manish-1kumar commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #50800

Summary of Changes

  • Adds an MSBuild snippet demonstrating how to configure <EnableCompressionInSingleFile>true.
  • Documents the memory impact of single-file assembly compression in addition to startup latency.
  • Clarifies that uncompressed single-file bundles memory-map assemblies, whereas compressed single-file bundles decompress assembly payloads (including precompiled ReadyToRun/R2R images) into process memory as committed private working set, adding hundreds of megabytes in memory consumption.
  • Adds guidance for containerized and memory-constrained production environments.

Internal previews

File Preview link
_csharplang/proposals/csharp-14.0/async-main-update.md Learn preview
docs/core/deploying/single-file/overview.md Learn preview

Build report

@dotnetrepoman dotnetrepoman Bot added this to the November 2026 milestone Nov 1, 2026
@dotnet-policy-service dotnet-policy-service Bot added dotnet-fundamentals/svc community-contribution Indicates PR is created by someone from the .NET community. labels Nov 1, 2026
@BillWagner
BillWagner requested a balanced review from Copilot November 24, 2026 14:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the documentation update explaining single-file compression’s memory and startup trade-offs.

No open issues 🎉

What changed in this PR

Addresses #50800 by expanding the single-file deployment documentation to explain compression’s memory costs alongside startup latency.

Changes:

  • Adds an MSBuild example to enable single-file compression.
  • Explains decompression memory overhead, including ReadyToRun payloads.
  • Adds measurement guidance for memory-constrained and startup-sensitive production environments.
File Description
docs/​core/​deploying/​single-file/​overview.md Expands compression configuration and performance guidance, and refreshes the article date.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Single file publishing documentation makes no mention of compression memory overhead

2 participants