-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve default build times on arm64 #21444
Comments
…1444. (#21461) 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 enable the trimmer by default for Debug mode on ARM64 on: * iOS * tvOS * Mac Catalyst (we're already trimming for other build configurations, so it seemed like an easy to choice to enable the trimmer in these configurations as well, as opposed to enabling the interpreter) Fixes #21444.
In tests with my real-world apps, build + deploy times to the simulator are ~16 seconds when only specifying
|
Yes, you should get some similar results (probably somewhere between 13 and 16 seconds). It should be easy enough for you to try it, by building with "TrimMode=partial" (without setting UseInterpreter). |
Only tested with one app, but the build & deploy time to simulator increased from 16 seconds to 21 seconds when removing |
The default build times for a Mac Catalyst app on arm64 are horrendous:
dotnet new maccatalyst && dotnet build
: 1 minuteEnabling the trimmer or the interpreter makes it much better:
dotnet new maccatalyst && dotnet build /p:UseInterpreter
: 17 secondsdotnet new maccatalyst && dotnet build /p:TrimMode=partial
: 12 secondsdotnet new maccatalyst && dotnet build /p:TrimMode=full
: 12 secondsdotnet new maccatalyst && dotnet build /p:TrimMode=partial /p:UseInterpreter=true
: 12 secondsSo 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.
The text was updated successfully, but these errors were encountered: