-
Notifications
You must be signed in to change notification settings - Fork 537
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
[illink] Set runtime libraries feature switches defaults #5337
[illink] Set runtime libraries feature switches defaults #5337
Conversation
Set all current feature switches, but `InvariantGlobalization`, to defaults which trim the features. Context: https://github.com/dotnet/runtime/blob/master/docs/workflow/trimming/feature-switches.md Difference in apk size of XA BuildReleaseArm64False test before/after: Summary: - 417,632 Assemblies -15.98% (of 2,613,075)
Detailed comparison of the above mentioned apks
|
@rolfbjarne do you set these feature switches for iOS as well? |
...marin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.ILLink.targets
Outdated
Show resolved
Hide resolved
Remove `System.Diagnostics.DiagnosticSource.dll` from the list, as it is now linked away as it should be.
...marin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.ILLink.targets
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, I restarted the MBuild device tests.
The CheckIncludedAssemblies
test that is failing because of Mono.Android.Export.dll
happens on master, so it is unrelated.
Set all current feature switches, except for InvariantGlobalization, to defaults which trim the features. Ref: https://github.com/dotnet/runtime/blob/master/docs/workflow/trimming/feature-switches.md Ref: dotnet/android#5337 This drops the hello world app size from 28.6 MB to 23.5 MB. Full report: https://gist.github.com/rolfbjarne/71cc18b49446862f1d42aa29526b0ac6
Set all current feature switches, except for InvariantGlobalization, to defaults which trim the features. Ref: https://github.com/dotnet/runtime/blob/master/docs/workflow/trimming/feature-switches.md Ref: dotnet/android#5337 This drops the hello world app size from 28.6 MB to 23.5 MB. Full report: https://gist.github.com/rolfbjarne/71cc18b49446862f1d42aa29526b0ac6
Set all current feature switches, but
InvariantGlobalization
, todefaults which trim the features.
Context: https://github.com/dotnet/runtime/blob/master/docs/workflow/trimming/feature-switches.md
Difference in assembly size of XA BuildReleaseArm64False test before/after: