Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Recommend "Don't Link" for Android debug builds. #8

Open
jgold6 opened this issue Oct 24, 2019 · 1 comment
Open

Recommend "Don't Link" for Android debug builds. #8

jgold6 opened this issue Oct 24, 2019 · 1 comment

Comments

@jgold6
Copy link

jgold6 commented Oct 24, 2019

Linking adds a fair amount of time to Android builds. IN one recent support case I handled, disabling the linker was they key to improving the incremental build time after a small code change.

So in the Android Linker section you say:

Linker Behavior: Link SDK assemblies only

  • The Linker will reduce the amount of managed code which means less native code to compile
  • Because Android uses emulators which behave similarly to Android devices, there isn't a recommended difference between Emulator & Device builds for the Linker settings like there is for iOS

So though there may not be a recommendation for simulator/ device builds, there is a recommendation for incremental versus full builds, as noted in this blog post:
https://devblogs.microsoft.com/xamarin/optimize-xamarin-android-builds/

Using AOT, Linking, or a Code Shrinker for Debug configurations is not that helpful. They will slow down your Debug builds with no real benefit.

@brminnick
Copy link
Owner

Thank you sir!

I’ll make sure to roll in these updates 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants