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

npm package increased from 87.6 MB to 290 MB since v7 and introduction of multi-architecture support #192

Open
shirakaba opened this issue Jan 28, 2023 · 1 comment

Comments

@shirakaba
Copy link

shirakaba commented Jan 28, 2023

Comparing the npm packages for:

image

image

... why has objc-metadata-generator gone from:

  • a single 22.6 MB binary (x86_64), to;
  • a 53.8 MB (arm64) and a 58.7 MB (x86_64) binary?

Shouldn't each binary both be closer to 22.6 MB? Has clang nearly tripled in size from v8.0.1 to v13.0.1?

Also XCFrameworks.zip has increased from 57.4 MB to 134.4 MB. This is closer to a tripling in size than a doubling. Have we not spotted something that's increasing the size dramatically?

@shirakaba shirakaba changed the title npm package ballooned in size since v7 and introduction of multi-architecture support npm package increased from 87.6 MB to 290 MB since v7 and introduction of multi-architecture support Jan 28, 2023
@rigor789
Copy link
Member

I believe llvm did increase in size quite a bit from 8.0 -> 13.0 and we've also had to compile for both arm64 and x86_64 to support m1/m2 macs.

The XCFrameworks size also increased as we're now including the debug symbols (DSYMS) inside the xcframework rather than a separate zip on the releases page on GitHub - however these are stripped by XCode when building, so shouldn't affect app size in any way - just the npm package itself.

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

2 participants