dotnet / dotnet/sdk

Eliminate Duplicate SDK Files

Open
#52,182 4 comments 5 reactions 1 assignee Claimed by @MichaelSimons View on GitHub
Area-acquisition untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Eliminate duplicated files within the .NET SDK by utilizing hard links to reduce installation size and improve disk footprint.
By removing duplicate assemblies, we can reduce the SDK size by 35% (53 MB compressed, 140 MB on disk) on Linux x64.

Design: https://github.com/dotnet/sdk/pull/51886

Current size status:

| Platform | SDK Artifact | 10.0.105 Size (MB) | 11.0 preview2 Size (MB) | 11.0 preview3 Size (MB) | 11.0 preview4 Size (MB) | Current % Gain | Notes |
|---|---|---|---|---|---|---|---|
| linux-x64 | tarball | 230 | 189 | 186 | 166 | 27.8% | |
| linux-x64 | deb | 164 | 122 | 125 | 106 | 35.3% | SDK package only |
| linux-x64 | rpm | 165 | 122 | 129 | 109 | 33.9% | SDK package only |
| osx-x64 | tarball | 228 | N/A | 184 | 165 | 27.6% | |
| osx-x64 | pkg | 223 | N/A | 184 | 165 | 26.0% | |
| windows-x64 | zip/tarball | 289 (zip) | N/A | 226 (tarball) | 208 (tarball) | 28.0% | |

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.