Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

[Performance] Optimize code to create the smallest binaries #26

Open
TimLariviere opened this issue Dec 7, 2021 · 3 comments
Open

[Performance] Optimize code to create the smallest binaries #26

TimLariviere opened this issue Dec 7, 2021 · 3 comments

Comments

@TimLariviere
Copy link
Owner

No description provided.

@TimLariviere TimLariviere added this to the v2 Release #1 milestone Dec 9, 2021
@TimLariviere
Copy link
Owner Author

I tried to build the IPA for iOS with the linker enabled.
I got a package of 35 Mb for CounterApp.

But I'm not sure why, the linker doesn't seem to delete the unused code in the Fabulous dlls :/

Here, it should only show the used attributes in CounterApp, not everything.
https://www.decompiler.com/jar/4fd2510cb9c34633bed3783f9f405120/Fabulous.XamarinForms.dll/Fabulous.XamarinForms.XFAttributes

@twop
Copy link
Collaborator

twop commented Jan 13, 2022

It seems that it treats attribute registration as a side effect included in startup, at least that is my current theory.

@twop
Copy link
Collaborator

twop commented Jan 13, 2022

Which kinda makes sense because it modifies a global dictionary with widget definitions

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

Successfully merging a pull request may close this issue.

2 participants