Skip to content

Performance of single assembly vs multiple assemblies #96781

Answered by jkotas
alexandrehtrb asked this question in General
Discussion options

You must be logged in to vote

What would the issue be about?

We do have PublishSingleFile and PublishAot options that create a single file that can be used to address some of the per-assembly overhead.

For advanced users, there are tools like https://github.com/gluck/il-repack. These tools can reduce the overhead even further, but they typically require non-trivial custom settings to make things work in specific situation.

many .NET solutions I have seen are divided in small assemblies.

Yes. Many .NET solutions like that load a fraction of the small assemblies during startup. Automatic merging of the small assemblies would be a regression for these solutions. Many small assemblies are fine if they are loaded lazily.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Suchiman
Comment options

@jkotas
Comment options

@alexandrehtrb
Comment options

@jkotas
Comment options

Answer selected by alexandrehtrb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants