TimLariviere / Fabulous-new

Fabulous v2 - Work in progress
https://timothelariviere.com/Fabulous-new/
Other
41 stars 3 forks source link

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

Open TimLariviere opened 2 years ago

TimLariviere commented 2 years ago

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 commented 2 years ago

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

twop commented 2 years ago

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