dotnet / dotnet/linker

Linker performance problems

Open
#918 4 comments 0 reactions 0 assignees View on GitHub
area-Linker: Meta
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

Linking a hello world with:
monolinker -a hello.exe -c link
Takes about 4.7 seconds with 8a82325ce8f34ed02655b834f4c6821b9d8f7011. This is a problem since the linker is on a critical path of the build and its ran serially. This used to be about 1-2 seconds. Link time should be proportional to the size of the final app.

Notes:
* Adding --disable-opt ipconstprop reduces the run time to 3.3 secs.
* The TypeMapStep loads and processes the whole unlinked assembly.
* Multiple passes are made over the IL, i.e. in MethodBodyScanner.

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.