Fabulous-new icon indicating copy to clipboard operation
Fabulous-new copied to clipboard

[Performance] Optimize code to create the smallest binaries

Open TimLariviere opened this issue 4 years ago • 3 comments

TimLariviere avatar Dec 07 '21 22:12 TimLariviere

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

TimLariviere avatar Jan 13 '22 17:01 TimLariviere

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

twop avatar Jan 13 '22 18:01 twop

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

twop avatar Jan 13 '22 18:01 twop