Skip to content

Improve default build times on arm64  #21444

@rolfbjarne

Description

@rolfbjarne

The default build times for a Mac Catalyst app on arm64 are horrendous:

  • dotnet new maccatalyst && dotnet build: 1 minute

Enabling the trimmer or the interpreter makes it much better:

  • dotnet new maccatalyst && dotnet build /p:UseInterpreter: 17 seconds
  • dotnet new maccatalyst && dotnet build /p:TrimMode=partial: 12 seconds
  • dotnet new maccatalyst && dotnet build /p:TrimMode=full: 12 seconds
  • dotnet new maccatalyst && dotnet build /p:TrimMode=partial /p:UseInterpreter=true: 12 seconds

So I suggest we enable the trimmer by default for Debug mode on Mac Catalyst (this would match how we handle iOS and tvOS in the simulator + we don't enable the interpreter on any other platform).

The same thing happens for the iOS and tvOS Simulators as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Mac CatalystIssues affecting Mac Catalystnotes-mentionDeserves a mention in release notesperformanceIf an issue or pull request is related to performance

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions