dotnet / dotnet/source-build

Native assemblies built in source-build are way too large

Open
#2,543 18 comments 0 reactions 0 assignees View on GitHub
area-build
Dominant language
No language data
Stars
287
Forks
145
Avg merge
1d 22h
Merged PRs (30d)
10

Description

In Microsoft distributions on linux, `libcoreclr.so` is roughly 7-8 MBs in size, and `libclrjit.so` is about 3-4 MBs.

When building .NET 6 in source-build, these assemblies are over 10x larger:

![image](https://user-images.githubusercontent.com/8291187/138104380-7671d353-c8b7-4532-a00d-feb2aaed38bf.png)

It is quite possible we aren't stripping symbols in source-build and that is what is making them so large. But I haven't investigated yet. I can get a source-build binlog to anyone who wants to investigate, but it is too large to upload here, so let me know.

cc @MichaelSimons @dseefeld @dagood @omajid @janvorli @vitek-karas @jkoritzinsky

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.