-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[mono] Exclude unused bundle files in AppleAppBuilder #86316
[mono] Exclude unused bundle files in AppleAppBuilder #86316
Conversation
@kotlarmilos - how do you determine they are un-used? |
The runtime loads the AOT module of a container assembly using the assembly name (#83711), so the actual assembly is not required. As for the globalization files, the HelloiOS sample app should use I have checked the HelloiOS sample app locally, but can't confirm that other globalization files are never used. @akoeplinger is it safe to remove |
Yes, it is. |
/cc: @akoeplinger @ivanpovazan |
src/mono/sample/iOS/Program.csproj
Outdated
@@ -109,6 +109,7 @@ | |||
EnableAppSandbox="$(EnableAppSandbox)" | |||
DiagnosticPorts="$(DiagnosticPorts)" | |||
StripSymbolTable="$(StripDebugSymbols)" | |||
ExcludeFromAppDir="$(_iOSLikeDedupAssembly)" |
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.
nit: This is really a nit but it would be cleaner to introduce a new local Item say:
_ExcludeFromAppDir Include="$(_iOSLikeDedupAssembly)"
around lines 60-65 above
and then have the full list passed to the AppleAppBuilderTask:
ExcludeFromAppDir="@(_ExcludeFromAppDir)"
This way it would be simpler to expand the list of excluded items - if we figure out in the future something else should be excluded.
Otherwise, LGTM!
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.
Agreed. I think we could do the same thing to more properties and simplify the appbuilder.
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.
Thanks.
I think we could do the same thing to more properties and simplify the appbuilder.
I suggest we remove redundant properties and simplify the appbuilder in #86578.
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.
Thanks.
I think we could do the same thing to more properties and simplify the appbuilder.
I suggest we remove redundant properties and simplify the appbuilder in #86578.
Agreed!
This PR aims to reduce the bundle size of the HelloiOS app by excluding unused globalization files and the dedup assembly. These files are currently included in the performance measurements but are not actually used by the app.
Here is an example with the unused bundle files included.
SOD - iOS HelloWorld .app Size