Steps to repro:
- 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
- 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 |
- 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