Skip to content

Native .so files are considerably larger in 5.0 than they were in 3.1 #39281

Closed
@eerhardt

Description

@eerhardt

Steps to repro:

  1. Using the latest SDK https://github.com/dotnet/installer#installers-and-binaries, create and publish a Hello World app:
    • dotnet new console
    • dotnet publish -r linux-x64 -c Release
  2. Check the sizes of the output .so files. Using 5.0.0-preview.8.20361.2 of the runtime, I see:
Assembly Size
libclrjit.so 3,323 KB
libcoreclr.so 11,532 KB
libmscordaccore.so 4,095 KB
libSystem.IO.Compression.Native.so 900 KB
  1. Now use a 3.1 app and publish:
Assembly Size
libclrjit.so 2,997 KB
libcoreclr.so 9,172 KB
libmscordaccore.so 3,400 KB
libSystem.IO.Compression.Native.so 771 KB

Why did these assemblies get so much bigger in 5.0? coreclr grew by about 25%.

cc @vitek-karas @janvorli

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions