Skip to content
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

Investigate iOS framework file size #4095

Open
nirinchev opened this issue Nov 22, 2021 · 3 comments
Open

Investigate iOS framework file size #4095

nirinchev opened this issue Nov 22, 2021 · 3 comments

Comments

@nirinchev
Copy link
Member

nirinchev commented Nov 22, 2021

While looking at an unrelated issue with @kneth, we noticed the file size of the iOS binary is surprisingly large. Here's a table of comparison of file sizes between js and .NET:

binary js .NET
ios-arm64_armv7 111 MB 60.5 MB
iosarm64_i386_x86_64simulator 98.1 MB 45 MB
androidarm64v8a 8.8 MB 8.3 MB
androidarmeabiv7a 6 MB 5.7 MB
androidarmeabiv7a 9.6 MB 9 MB

What's noticeable is that while the android binaries are fairly similar in size, the iOS ones are almost twice as large as the .NET binaries. It likely points to an incorrect build configuration for iOS.

@kneth
Copy link
Contributor

kneth commented Nov 24, 2021

It is related to #3652 and maybe #3637

@kraenhansen
Copy link
Member

These are updated numbers for the prebuilds produced in #6650:

binary js
ios-arm64 19 MB
ios-arm64_i386_x86_64-simulator 42 MB
ios-arm64_x86_64-maccatalyst 42 MB

I'm unsure how to reproduce the android measurement as I can't seem produce a release binary with the debug symbols stripped.

@sync-by-unito sync-by-unito bot reopened this May 28, 2024
@nirinchev
Copy link
Member Author

Are those numbers in release or debug builds? Because they still seem a bit large. For comparison, here's what we have on .NET:

binary .NET
ios-arm64 7.4 MB
ios-arm64_x86_64-simulator 15.5 MB
ios-arm64_x86_64-maccatalyst 16 MB

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

No branches or pull requests

3 participants