Skip to content

Linker performance problems #918

@vargaz

Description

@vargaz

Linking a hello world with:
monolinker -a hello.exe -c link
Takes about 4.7 seconds with 8a82325. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions